mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-21 21:33:02 +01:00
Fix ownership of directories
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user