mirror of
https://github.com/lus/pasty.git
synced 2023-08-10 21:13:09 +03:00
docker: Use distroless
Much slimmer, way lesser attack surface Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
317d7e6d88
commit
612f0e8977
|
@ -18,7 +18,7 @@ RUN go build \
|
||||||
./cmd/pasty/main.go
|
./cmd/pasty/main.go
|
||||||
|
|
||||||
# Run the application in an empty alpine environment
|
# Run the application in an empty alpine environment
|
||||||
FROM alpine:latest
|
FROM gcr.io/distroless/base:latest
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
COPY --from=build /app/pasty .
|
COPY --from=build /app/pasty .
|
||||||
COPY web ./web/
|
COPY web ./web/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user