Update Dockerfile.rootless

This commit is contained in:
Katos
2025-01-05 17:01:42 +00:00
committed by GitHub
parent d84c45d332
commit 1d62552046

View File

@@ -87,7 +87,10 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
# Persist volume # Persist volume
VOLUME [ "/data" ] VOLUME [ "/data" ]
# Set ownership for required directories at runtime (excluding /data) # Set ownership for required directories
ENTRYPOINT ["/bin/sh", "-c", "chown -R nonroot:nonroot /app /app/api && /app/api /data/config.yml"] RUN chown -R nonroot:nonroot /app /app/api
# Entrypoint and CMD
USER nonroot USER nonroot
ENTRYPOINT [ "/app/api" ]
CMD [ "/data/config.yml" ] CMD [ "/data/config.yml" ]