2020-09-08 13:20:54 -07:00
|
|
|
ARG BASE_IMAGE=iamthefij/drone-pre-commit
|
|
|
|
FROM ${BASE_IMAGE}:base
|
|
|
|
|
2021-02-02 14:49:37 -08:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends golang=2:1.11~1 && \
|
|
|
|
apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2020-09-08 13:20:54 -07:00
|
|
|
# Add helper scripts
|
|
|
|
COPY ./scripts /scripts
|
|
|
|
|
|
|
|
# Bundle hadolint
|
|
|
|
RUN /scripts/add_hadolint.sh
|
2021-02-02 13:59:15 -08:00
|
|
|
RUN /scripts/add_golangci_lint.sh
|