Daniel Kantor
commited on
Commit
·
8ee5c82
1
Parent(s):
c552f2e
- Dockerfile +4 -0
Dockerfile
CHANGED
@@ -5,6 +5,10 @@ COPY frontend/package*.json ./
|
|
5 |
RUN npm install
|
6 |
COPY frontend/ ./
|
7 |
|
|
|
|
|
|
|
|
|
8 |
RUN npm run build
|
9 |
|
10 |
# Build backend
|
|
|
5 |
RUN npm install
|
6 |
COPY frontend/ ./
|
7 |
|
8 |
+
# Inject env variables in build process
|
9 |
+
ARG REACT_APP_OAUTH_CLIENT_ID
|
10 |
+
ENV REACT_APP_OAUTH_CLIENT_ID=$REACT_APP_OAUTH_CLIENT_ID
|
11 |
+
|
12 |
RUN npm run build
|
13 |
|
14 |
# Build backend
|