summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2020-10-29 14:20:34 +0100
committerGitHub <noreply@github.com>2020-10-29 14:20:34 +0100
commitea0dd07e8a5deb8084ebcbae780e57fdd90bccc2 (patch)
treed881b6eec4115d398df575892527353dc407cba6
parentcb50c427098cd73b0d4de930d35c5976f2ae919f (diff)
parent263f4550013e8ee5fbc3c914af41ccb6cd218f1b (diff)
Merge pull request #55 from atlarge-research/build/docker-arg
Properly set arguments in multistage Docker build
-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/ \