diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-05-09 13:12:21 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-05-09 13:12:21 +0200 |
| commit | f79c0872ddfcbe02a7bcc498b4a9d5d202caccd2 (patch) | |
| tree | 7ff6132f8b7e283a015eccb8ffe6034930f078ed /opendc-web/opendc-web-ui/Dockerfile | |
| parent | 33e425279f171539205fcda20c6817e9f8e02033 (diff) | |
ui: Update runtime variable workaround
This change updates the workaround used to access runtime variables in
the React frontend, in order to improve the ergonimics when using the
development mode of CRA (Create React App).
Diffstat (limited to 'opendc-web/opendc-web-ui/Dockerfile')
| -rw-r--r-- | opendc-web/opendc-web-ui/Dockerfile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/opendc-web/opendc-web-ui/Dockerfile b/opendc-web/opendc-web-ui/Dockerfile index 7aa3a7bf..86a18a03 100644 --- a/opendc-web/opendc-web-ui/Dockerfile +++ b/opendc-web/opendc-web-ui/Dockerfile @@ -11,6 +11,7 @@ FROM node:15 AS build COPY ./ /opendc COPY --from=staging /opendc/node_modules /opendc/node_modules RUN cd /opendc/ \ + && export REACT_APP_OAUTH_CLIENT_ID="\\\$REACT_APP_OAUTH_CLIENT_ID" \ && yarn build \ && mv build/index.html build/index.html.template |
