drone-pre-commit/Dockerfile.personal

14 lines
275 B
Docker

ARG BASE_IMAGE=iamthefij/drone-pre-commit
FROM ${BASE_IMAGE}:base
# Add helper scripts
COPY ./scripts /scripts
# Add golang
RUN /scripts/add_golang.sh
ENV PATH=$PATH:/usr/local/go/bin
# Add some other linters
RUN /scripts/add_hadolint.sh
RUN /scripts/add_golangci_lint.sh