arvind-git-code
commited on
Commit
·
c12d893
1
Parent(s):
9fed9f2
Fix environment variable handling
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -11,8 +11,9 @@ COPY public/ ./public/
|
|
11 |
COPY src/ ./src/
|
12 |
COPY tsconfig.json ./
|
13 |
|
14 |
-
# Create .env file
|
15 |
-
|
|
|
16 |
|
17 |
# Build the application
|
18 |
RUN npm run build
|
|
|
11 |
COPY src/ ./src/
|
12 |
COPY tsconfig.json ./
|
13 |
|
14 |
+
# Create .env file before building
|
15 |
+
ARG REACT_APP_GEMINI_API_KEY
|
16 |
+
ENV REACT_APP_GEMINI_API_KEY=$REACT_APP_GEMINI_API_KEY
|
17 |
|
18 |
# Build the application
|
19 |
RUN npm run build
|