Add oci labels
This commit is contained in:
@@ -8,6 +8,9 @@ COPY pyproject.toml README.md ./
|
||||
RUN pip install --no-cache-dir .
|
||||
|
||||
FROM base
|
||||
LABEL org.opencontainers.image.source="http://gitea.lan/jacobh2/babymonitor"
|
||||
LABEL org.opencontainers.image.description="Babymonitor Backend"
|
||||
|
||||
# Copy installed packages from builder
|
||||
COPY --from=builder /usr/local/lib/python3.14/site-packages /usr/local/lib/python3.14/site-packages
|
||||
COPY --from=builder /usr/local/bin /usr/local/bin
|
||||
|
||||
@@ -17,6 +17,9 @@ RUN npm run build
|
||||
# Stage 2: Production stage
|
||||
FROM nginx:1.27-alpine
|
||||
|
||||
LABEL org.opencontainers.image.source="http://gitea.lan/jacobh2/babymonitor"
|
||||
LABEL org.opencontainers.image.description="Babymonitor Frontend"
|
||||
|
||||
# Copy the built assets from the build stage to Nginx's default HTML directory
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
|
||||
|
||||
Reference in New Issue
Block a user