From 52e461ec80e93a77a1cf60186ceca7e34f9a491a Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Sun, 7 Jul 2024 21:50:10 -0300 Subject: [PATCH] Save a little space in the final image --- runtimes/crystal/Dockerfile.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtimes/crystal/Dockerfile.j2 b/runtimes/crystal/Dockerfile.j2 index 1897100..c96c8bb 100644 --- a/runtimes/crystal/Dockerfile.j2 +++ b/runtimes/crystal/Dockerfile.j2 @@ -10,7 +10,7 @@ RUN shards build --release RUN strip bin/* 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 WORKDIR /home/app @@ -19,4 +19,4 @@ USER app COPY --from=build /home/app/bin/funko . CMD ["./funko"] -HEALTHCHECK {{ healthcheck_options }} CMD {{ healthcheck_command }} \ No newline at end of file +HEALTHCHECK {{ healthcheck_options }} CMD {{ healthcheck_command }}