Fix ownership of directories

This commit is contained in:
Katos
2025-01-05 16:46:04 +00:00
committed by GitHub
parent 1f197f748a
commit d84c45d332

View File

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