drone-pre-commit/Dockerfile.personal

15 lines
354 B
Docker
Raw Normal View History

2020-09-08 20:20:54 +00:00
ARG BASE_IMAGE=iamthefij/drone-pre-commit
FROM ${BASE_IMAGE}:base
2021-02-02 22:49:37 +00: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 20:20:54 +00:00
# Add helper scripts
COPY ./scripts /scripts
# Bundle hadolint
RUN /scripts/add_hadolint.sh
2021-02-02 21:59:15 +00:00
RUN /scripts/add_golangci_lint.sh