drone-pre-commit/Dockerfile.personal
Ian Fijolek dba73a68e3
All checks were successful
continuous-integration/drone/push Build is passing
Ensure goimports is installed
2024-01-03 21:36:18 -08:00

13 lines
347 B
Docker

ARG BASE_IMAGE=iamthefij/drone-pre-commit
FROM ${BASE_IMAGE}:base
# Add helper scripts
COPY ./scripts /scripts
ENV PATH=$PATH:/usr/local/go/bin
RUN /scripts/add_golang.sh && \
go install golang.org/x/tools/cmd/goimports@v0.16.1 && \
/scripts/add_hadolint.sh && \
/scripts/add_golangci_lint.sh && \
/scripts/add_docker_compose.sh