From 12007be5b3d5542b23c4d3c2a369d157a13418d2 Mon Sep 17 00:00:00 2001 From: rramiachraf <51409801+rramiachraf@users.noreply.github.com> Date: Thu, 14 Mar 2024 13:22:45 +0000 Subject: [PATCH] ci: use scratch image instead of alpine for a smaller image --- Dockerfile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index b23922b..a1200bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,15 +10,11 @@ RUN go mod download COPY . . RUN make build -FROM alpine:3.19 - -RUN adduser user -D - -USER user -WORKDIR /home/user/dumb +FROM scratch COPY --from=build /code/dumb . COPY --from=build /code/static static +COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ EXPOSE 5555/tcp