Save a little space in the final image

This commit is contained in:
Roberto Alsina 2024-07-07 21:50:10 -03:00
parent bcbf74bbaa
commit 52e461ec80

View File

@ -10,7 +10,7 @@ RUN shards build --release
RUN strip bin/* RUN strip bin/*
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine as ship FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine as ship
RUN apk update && apk upgrade && apk add openssl pcre2 libgcc gc libevent curl {{ ship_packages | join " " }} && apk cache clean RUN apk update && apk upgrade && apk add pcre2 libgcc gc libevent curl {{ ship_packages | join " " }} && apk cache clean
RUN addgroup -S app && adduser app -S -G app RUN addgroup -S app && adduser app -S -G app
WORKDIR /home/app WORKDIR /home/app
@ -19,4 +19,4 @@ USER app
COPY --from=build /home/app/bin/funko . COPY --from=build /home/app/bin/funko .
CMD ["./funko"] CMD ["./funko"]
HEALTHCHECK {{ healthcheck_options }} CMD {{ healthcheck_command }} HEALTHCHECK {{ healthcheck_options }} CMD {{ healthcheck_command }}