Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Add labels to mark the source repository

Dhruv Bhanushali5ce887148941
diff --git a/api/Dockerfile b/api/Dockerfile
index f0e553aac..937280481 100644
--- a/api/Dockerfile
+++ b/api/Dockerfile
@@ -43,6 +43,8 @@ RUN pipenv install --system --deploy --dev
FROM nginx:1.23.2-alpine as nginx
+LABEL org.opencontainers.image.source = "https://github.com/WordPress/openverse"
+
WORKDIR /app
COPY nginx.conf.template /etc/nginx/templates/openverse-api.conf.template
@@ -61,6 +63,8 @@ ENV DJANGO_NGINX_GIT_REVISION=$SEMANTIC_VERSION
FROM python:3.10-slim as api
+LABEL org.opencontainers.image.source="https://github.com/WordPress/openverse"
+
ENV PYTHONBUFFERED=1
# Activate the virtualenv
ENV PATH="/venv/bin:$PATH"
diff --git a/frontend/Dockerfile b/frontend/Dockerfile
index 182163313..0d891d813 100644
--- a/frontend/Dockerfile
+++ b/frontend/Dockerfile
@@ -38,6 +38,8 @@ RUN pnpm build:only
FROM node:16-alpine as app
+LABEL org.opencontainers.image.source="https://github.com/WordPress/openverse"
+
# Install CURL for the production healthcheck
RUN apk --no-cache add curl
diff --git a/ingestion_server/Dockerfile b/ingestion_server/Dockerfile
index aaaeb0d71..40893b7ea 100644
--- a/ingestion_server/Dockerfile
+++ b/ingestion_server/Dockerfile
@@ -29,6 +29,8 @@ RUN pipenv install --system --deploy --dev
FROM python:3.10-slim as ing
+LABEL org.opencontainers.image.source="https://github.com/WordPress/openverse"
+
ENV PYTHONBUFFERED=1
# Activate the virtualenv
ENV PATH="/venv/bin:$PATH"