Move image to use distroless with PGID and PUID (#21)

This commit is contained in:
Mukhtar Akere
2025-01-28 21:15:40 +01:00
committed by GitHub
parent 07d632309a
commit 1a2504ff6c

View File

@@ -22,12 +22,10 @@ RUN CGO_ENABLED=0 GOOS=$(echo $TARGETPLATFORM | cut -d '/' -f1) GOARCH=$(echo $T
FROM alpine as logsetup
RUN mkdir -p /logs && \
touch /logs/decypharr.log && \
chown -R 1000:1000 /logs && \
chmod -R 755 /logs && \
chmod 666 /logs/decypharr.log
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
FROM gcr.io/distroless/static-debian12:latest
COPY --from=builder /blackhole /blackhole
COPY --from=builder /app/README.md /README.md
COPY --from=logsetup /logs /logs