ci: use scratch image instead of alpine for a smaller image
This commit is contained in:
parent
207ab639af
commit
12007be5b3
@ -10,15 +10,11 @@ RUN go mod download
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN make build
|
RUN make build
|
||||||
|
|
||||||
FROM alpine:3.19
|
FROM scratch
|
||||||
|
|
||||||
RUN adduser user -D
|
|
||||||
|
|
||||||
USER user
|
|
||||||
WORKDIR /home/user/dumb
|
|
||||||
|
|
||||||
COPY --from=build /code/dumb .
|
COPY --from=build /code/dumb .
|
||||||
COPY --from=build /code/static static
|
COPY --from=build /code/static static
|
||||||
|
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||||
|
|
||||||
EXPOSE 5555/tcp
|
EXPOSE 5555/tcp
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user