Lets try this

This commit is contained in:
Matt Kilgore
2025-01-05 12:48:00 -05:00
parent 6ad0c33340
commit ac47073988

View File

@@ -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"