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
|
# Persist volume
|
||||||
VOLUME [ "/data" ]
|
VOLUME [ "/data" ]
|
||||||
|
|
||||||
# Set ownership for required directories
|
# Set ownership for required directories at runtime (excluding /data)
|
||||||
RUN chown -R nonroot:nonroot /app /data /app/api
|
ENTRYPOINT ["/bin/sh", "-c", "chown -R nonroot:nonroot /app /app/api && /app/api /data/config.yml"]
|
||||||
|
|
||||||
# Entrypoint and CMD
|
|
||||||
USER nonroot
|
USER nonroot
|
||||||
ENTRYPOINT [ "/app/api" ]
|
CMD ["/data/config.yml"]
|
||||||
CMD [ "/data/config.yml" ]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user