Move image to use distroless with PGID and PUID (#21)
This commit is contained in:
+1
-3
@@ -22,12 +22,10 @@ RUN CGO_ENABLED=0 GOOS=$(echo $TARGETPLATFORM | cut -d '/' -f1) GOARCH=$(echo $T
|
|||||||
FROM alpine as logsetup
|
FROM alpine as logsetup
|
||||||
RUN mkdir -p /logs && \
|
RUN mkdir -p /logs && \
|
||||||
touch /logs/decypharr.log && \
|
touch /logs/decypharr.log && \
|
||||||
chown -R 1000:1000 /logs && \
|
|
||||||
chmod -R 755 /logs && \
|
chmod -R 755 /logs && \
|
||||||
chmod 666 /logs/decypharr.log
|
chmod 666 /logs/decypharr.log
|
||||||
|
|
||||||
FROM scratch
|
FROM gcr.io/distroless/static-debian12:latest
|
||||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
||||||
COPY --from=builder /blackhole /blackhole
|
COPY --from=builder /blackhole /blackhole
|
||||||
COPY --from=builder /app/README.md /README.md
|
COPY --from=builder /app/README.md /README.md
|
||||||
COPY --from=logsetup /logs /logs
|
COPY --from=logsetup /logs /logs
|
||||||
|
|||||||
Reference in New Issue
Block a user