docker: Use distroless

Much slimmer, way lesser attack surface

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2022-03-17 16:33:54 +05:30
parent 317d7e6d88
commit 612f0e8977
No known key found for this signature in database
GPG Key ID: F93C394FE9BBAFD5
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ RUN go build \
./cmd/pasty/main.go
# Run the application in an empty alpine environment
FROM alpine:latest
FROM gcr.io/distroless/base:latest
WORKDIR /root
COPY --from=build /app/pasty .
COPY web ./web/