From f79c0872ddfcbe02a7bcc498b4a9d5d202caccd2 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Sun, 9 May 2021 13:12:21 +0200 Subject: 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). --- opendc-web/opendc-web-ui/Dockerfile | 1 + 1 file changed, 1 insertion(+) (limited to 'opendc-web/opendc-web-ui/Dockerfile') 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 -- cgit v1.2.3