diff --git a/Dockerfile.rootless b/Dockerfile.rootless index caeabd47..6a80addd 100644 --- a/Dockerfile.rootless +++ b/Dockerfile.rootless @@ -72,6 +72,9 @@ RUN mkdir /app COPY --from=builder /go/bin/api /app RUN chmod +x /app/api +# Set ownership for required directories +RUN chown -R nonroot:nonroot /app /data /app/api + # Labels and configuration for the final image LABEL Name=homebox Version=0.0.1 LABEL org.opencontainers.image.source="https://github.com/sysadminsmedia/homebox"