diff --git a/docker/prod/Dockerfile b/docker/prod/Dockerfile index dacf5ac0..a33ace2f 100644 --- a/docker/prod/Dockerfile +++ b/docker/prod/Dockerfile @@ -1,7 +1,7 @@ -# Set also `ARCH` ARG here so we can use it on all the `FROM`s. +# Set also `ARCH` ARG here so we can use it on all the `FROM`s. ARG ARCH -FROM golang:1.19.3-alpine as build-stage +FROM golang:1.22.8-alpine as build-stage LABEL org.opencontainers.image.source https://github.com/slok/sloth @@ -26,10 +26,10 @@ RUN ./scripts/build/bin/build-raw.sh # Although we are on an specific architecture (normally linux/amd64) our go binary has been built for # ${ARCH} specific architecture. -# To make portable our building process we base our final image on that same architecture as the binary +# To make portable our building process we base our final image on that same architecture as the binary # to obtain a resulting ${ARCH} image independently where we are building this image. FROM gcr.io/distroless/static:nonroot-${ARCH} COPY --from=build-stage /src/bin/sloth /usr/local/bin/sloth -ENTRYPOINT ["/usr/local/bin/sloth"] \ No newline at end of file +ENTRYPOINT ["/usr/local/bin/sloth"]