Skip to content

Commit

Permalink
Lets try this
Browse files Browse the repository at this point in the history
  • Loading branch information
tankerkiller125 committed Jan 5, 2025
1 parent 6ad0c33 commit ac47073
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile.rootless
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,10 @@ RUN addgroup -S nonroot && adduser -S nonroot -G nonroot

# Create application directory and copy over built Go binary
RUN mkdir /app
COPY --from=builder /go/bin/api /app
COPY --from=builder --chown=nonroot /go/bin/api /app
COPY --from=builder --chown=nonroot /data /data
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 Down

0 comments on commit ac47073

Please sign in to comment.