summaryrefslogtreecommitdiff
path: root/frontend/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/Dockerfile')
-rw-r--r--frontend/Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/frontend/Dockerfile b/frontend/Dockerfile
index 36e3c20b..113b09c9 100644
--- a/frontend/Dockerfile
+++ b/frontend/Dockerfile
@@ -1,7 +1,8 @@
FROM node:14
MAINTAINER OpenDC Maintainers <opendc@atlarge-research.com>
-ARG REACT_APP_OAUTH_CLIENT_ID
+ARG OPENDC_OAUTH_CLIENT_ID
+ARG OPENDC_API_BASE_URL
# Copy OpenDC directory
COPY ./ /opendc
@@ -10,7 +11,8 @@ COPY ./ /opendc
RUN cd /opendc/ \
&& rm -rf ./build \
&& yarn \
- && export REACT_APP_OAUTH_CLIENT_ID=$REACT_APP_OAUTH_CLIENT_ID \
+ && export REACT_APP_OAUTH_CLIENT_ID=$OPENDC_OAUTH_CLIENT_ID \
+ && export REACT_APP_API_BASE_URL=$OPENDC_API_BASE_URL \
&& yarn build
# Setup nginx to serve the frontend