Open sid-occrp opened 1 week ago
The following Dockerfile
changes worked for me:
diff --git a/Dockerfile b/Dockerfile
index f4b0aec6..4553de93 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -8,7 +8,7 @@ COPY Makefile .
RUN make frontend
# Backend build.
-FROM golang:1.20.5-buster as gobuild
+FROM golang:1.23.0-bookworm as gobuild
WORKDIR /go/src/github.com/lyft/clutch
COPY ./backend ./backend
COPY ./tools/preflight-checks.sh ./tools/preflight-checks.sh
@@ -19,7 +19,7 @@ COPY --from=nodebuild ./frontend/packages/app/build ./frontend/packages/app/buil
RUN make backend-with-assets
# Copy binary to final image.
-FROM gcr.io/distroless/base-debian10
+FROM gcr.io/distroless/base-debian12
COPY --from=gobuild /go/src/github.com/lyft/clutch/build/clutch /
COPY backend/clutch-config.yaml /
CMD ["/clutch"]
Description
I'm trying to build the docker container executing ´docker build -t clutch:latest .´
Expected Behavior
The build should complete successfully.
Actual Behavior
I've tried modifying the go.mod to
go 1.23
but still the build fail with:Version 2a2f4fe817e42fb15d3f58f615fe5301647a1680, current HEAD