Move image to use distroless with PGID and PUID (#21)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user