mirror of
https://github.com/project-zot/zot.git
synced 2026-06-15 20:07:55 +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
+1
-1
@@ -25,7 +25,7 @@ RUN echo '{\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
|
||||
ARG OS
|
||||
ARG ARCH
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
Reference in New Issue
Block a user