summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'opendc-web/opendc-web-ui/Dockerfile')
-rw-r--r--opendc-web/opendc-web-ui/Dockerfile12
1 files changed, 10 insertions, 2 deletions
diff --git a/opendc-web/opendc-web-ui/Dockerfile b/opendc-web/opendc-web-ui/Dockerfile
index 3e9a4800..24ca2b3e 100644
--- a/opendc-web/opendc-web-ui/Dockerfile
+++ b/opendc-web/opendc-web-ui/Dockerfile
@@ -1,4 +1,4 @@
-FROM node:18 AS staging
+FROM node:18-slim AS staging
MAINTAINER OpenDC Maintainers <opendc@atlarge-research.com>
# Copy package details
@@ -6,7 +6,7 @@ COPY ./package.json ./package-lock.json /opendc/
RUN cd /opendc && npm ci
# Build frontend
-FROM node:18 AS build
+FROM node:18-slim AS build
COPY ./ /opendc
COPY --from=staging /opendc/node_modules /opendc/node_modules
@@ -26,3 +26,11 @@ FROM node:18-slim
COPY --from=build /opendc /opendc
WORKDIR /opendc
CMD ./scripts/envsubst.sh; npm run start
+
+LABEL org.opencontainers.image.authors="OpenDC Maintainers <opendc@atlarge-research.com>"
+LABEL org.opencontainers.image.url="https://opendc.org"
+LABEL org.opencontainers.image.documentation="https://opendc.org"
+LABEL org.opencontainers.image.source="https://github.com/atlarge-research/opendc"
+LABEL org.opencontainers.image.title="OpenDC Web UI"
+LABEL org.opencontainers.image.description="OpenDC Web UI Docker Image"
+LABEL org.opencontainers.image.vendor="AtLarge Research"