mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 04:48:26 +08:00
build: add -buildmode=pie to builds
This makes zot a dynamic binary, so the container base image has to be changed accordingly Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
committed by
Ramkumar Chinchani
parent
b2a4388522
commit
554e99a967
@@ -20,7 +20,7 @@ storage:\n\
|
||||
# ---
|
||||
# Stage 2: Final image with nothing but certs, binary, and default config file
|
||||
# ---
|
||||
FROM scratch AS final
|
||||
FROM gcr.io/distroless/base AS final
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
COPY --from=builder /go/src/github.com/project-zot/zot/bin/zot-linux-amd64 /usr/bin/zot
|
||||
COPY --from=builder /go/src/github.com/project-zot/zot/config.yml /etc/zot/config.yml
|
||||
|
||||
Reference in New Issue
Block a user