Skip to content

Commit

Permalink
Attempt #182391239123
Browse files Browse the repository at this point in the history
  • Loading branch information
katosdev committed Jan 5, 2025
1 parent 14bb2de commit 6ad0c33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile.rootless
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ RUN mkdir /app
COPY --from=builder /go/bin/api /app
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
LABEL Name=homebox Version=0.0.1
LABEL org.opencontainers.image.source="https://github.com/sysadminsmedia/homebox"
Expand All @@ -87,9 +90,6 @@ 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 /app/api /data

# Entrypoint and CMD
USER nonroot
ENTRYPOINT [ "/app/api" ]
Expand Down

0 comments on commit 6ad0c33

Please sign in to comment.