diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-10-28 11:38:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-28 11:38:11 +0100 |
| commit | bb03ab6a934eaf29cea86e877c4b2024f068dd1c (patch) | |
| tree | 761afe2c0f26a44d75cb12f87c31c1ecc08105f9 /frontend/Dockerfile | |
| parent | 38fc6fa35ca4545a6068aaa759359c271c9f5197 (diff) | |
| parent | b2cb04229766457c9eb784d1911192bceea3a032 (diff) | |
Merge pull request #51 from atlarge-research/build/migration
Migrate opendc.org to OpenDC v2
Diffstat (limited to 'frontend/Dockerfile')
| -rw-r--r-- | frontend/Dockerfile | 6 |
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 |
