Skip to content

Commit

Permalink
ci: use scratch image instead of alpine for a smaller image
Browse files Browse the repository at this point in the history
  • Loading branch information
rramiachraf committed Mar 14, 2024
1 parent 207ab63 commit 12007be
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 12007be

Please sign in to comment.