summaryrefslogtreecommitdiff
path: root/frontend/Dockerfile
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2020-10-29 14:17:12 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-10-29 14:17:12 +0100
commit263f4550013e8ee5fbc3c914af41ccb6cd218f1b (patch)
treed881b6eec4115d398df575892527353dc407cba6 /frontend/Dockerfile
parentcb50c427098cd73b0d4de930d35c5976f2ae919f (diff)
Properly set arguments in multistage Docker build
Diffstat (limited to 'frontend/Dockerfile')
-rw-r--r--frontend/Dockerfile7
1 files changed, 4 insertions, 3 deletions
diff --git a/frontend/Dockerfile b/frontend/Dockerfile
index dc74aa15..d20f0232 100644
--- a/frontend/Dockerfile
+++ b/frontend/Dockerfile
@@ -1,15 +1,16 @@
FROM node:14 AS staging
MAINTAINER OpenDC Maintainers <opendc@atlarge-research.com>
-ARG OPENDC_OAUTH_CLIENT_ID
-ARG OPENDC_API_BASE_URL
-
# Copy package details
COPY ./package.json ./yarn.lock /opendc/
RUN cd /opendc && yarn
# Build frontend
FROM node:14 AS build
+
+ARG OPENDC_OAUTH_CLIENT_ID
+ARG OPENDC_API_BASE_URL
+
COPY ./ /opendc
COPY --from=staging /opendc/node_modules /opendc/node_modules
RUN cd /opendc/ \