-
Notifications
You must be signed in to change notification settings - Fork 14
/
builder.Dockerfile
21 lines (14 loc) · 1.15 KB
/
builder.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ARG DOCKER_BASE=golang:1.22-bookworm
FROM ${DOCKER_BASE}
ENV SYSL_VERSION=0.750.0
ENV ARRAI_VERSION=0.319.0
WORKDIR /temp-deps/sysl
RUN curl -LJO https://github.com/anz-bank/sysl/releases/download/v"$SYSL_VERSION"/sysl_"$SYSL_VERSION"_linux-amd64.tar.gz && tar -xvf sysl_"$SYSL_VERSION"_linux-amd64.tar.gz && mv sysl /bin/sysl
WORKDIR /temp-deps/arrai
RUN curl -LJO https://github.com/arr-ai/arrai/releases/download/v"$ARRAI_VERSION"/arrai_v"$ARRAI_VERSION"_linux-amd64.tar.gz && tar -xvf arrai_v"$ARRAI_VERSION"_linux-amd64.tar.gz && mv arrai /bin/arrai
WORKDIR /temp-deps/golangci-lint
RUN curl -LJO https://github.com/golangci/golangci-lint/releases/download/v1.56.2/golangci-lint-1.56.2-linux-amd64.tar.gz && tar -xvf golangci-lint-1.56.2-linux-amd64.tar.gz && mv golangci-lint-1.56.2-linux-amd64/golangci-lint /bin/golangci-lint
RUN go install golang.org/x/tools/cmd/goimports@latest
# Need this line to fix git commands not working inside the docker image (it is run in actions/checkout but the git config is not passed in to the image, and even if it was, the full path doesn't match)
RUN git config --global --add safe.directory /work
ENTRYPOINT [ "/usr/bin/make" ]