mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-21 13:23:14 +01:00
Attempt #182391239123
This commit is contained in:
@@ -72,6 +72,9 @@ RUN mkdir /app
|
|||||||
COPY --from=builder /go/bin/api /app
|
COPY --from=builder /go/bin/api /app
|
||||||
RUN chmod +x /app/api
|
RUN chmod +x /app/api
|
||||||
|
|
||||||
|
# Create /data directory and set ownership for required directories
|
||||||
|
RUN mkdir /data && chown -R nonroot:nonroot /app /app/api /data
|
||||||
|
|
||||||
# Labels and configuration for the final image
|
# Labels and configuration for the final image
|
||||||
LABEL Name=homebox Version=0.0.1
|
LABEL Name=homebox Version=0.0.1
|
||||||
LABEL org.opencontainers.image.source="https://github.com/sysadminsmedia/homebox"
|
LABEL org.opencontainers.image.source="https://github.com/sysadminsmedia/homebox"
|
||||||
@@ -87,9 +90,6 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
|
|||||||
# Persist volume
|
# Persist volume
|
||||||
VOLUME [ "/data" ]
|
VOLUME [ "/data" ]
|
||||||
|
|
||||||
# Set ownership for required directories
|
|
||||||
RUN chown -R nonroot:nonroot /app /app/api /data
|
|
||||||
|
|
||||||
# Entrypoint and CMD
|
# Entrypoint and CMD
|
||||||
USER nonroot
|
USER nonroot
|
||||||
ENTRYPOINT [ "/app/api" ]
|
ENTRYPOINT [ "/app/api" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user