add labels to binary / frontend images

This commit is contained in:
mbecker20
2024-12-02 03:02:00 -05:00
parent 00968b6ea1
commit 4e554eb2a7
2 changed files with 11 additions and 2 deletions

View File

@@ -20,4 +20,8 @@ RUN \
FROM scratch
COPY --from=builder /builder/target/release/core /core
COPY --from=builder /builder/target/release/periphery /periphery
COPY --from=builder /builder/target/release/periphery /periphery
LABEL org.opencontainers.image.source=https://github.com/mbecker20/komodo
LABEL org.opencontainers.image.description="Komodo Periphery"
LABEL org.opencontainers.image.licenses=GPL-3.0

View File

@@ -15,4 +15,9 @@ RUN cd frontend && yarn link komodo_client && yarn && yarn build
# Copy just the static frontend to scratch image
FROM scratch
COPY --from=builder /builder/frontend/dist /frontend
COPY --from=builder /builder/frontend/dist /frontend
LABEL org.opencontainers.image.source=https://github.com/mbecker20/komodo
LABEL org.opencontainers.image.description="Komodo Periphery"
LABEL org.opencontainers.image.licenses=GPL-3.0