Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -7,9 +7,9 @@ COPY w_env.ts /app/server/env.ts
|
|
| 7 |
# 将当前目录下的所有文件复制到工作目录
|
| 8 |
#ENV NODE_ENV=production
|
| 9 |
RUN npm install
|
| 10 |
-
RUN
|
| 11 |
#RUN npm run build
|
| 12 |
# Start the server by default, this can be overwritten at runtime
|
| 13 |
EXPOSE 3000
|
| 14 |
|
| 15 |
-
|
|
|
|
| 7 |
# 将当前目录下的所有文件复制到工作目录
|
| 8 |
#ENV NODE_ENV=production
|
| 9 |
RUN npm install
|
| 10 |
+
RUN echo "GOOGLE_API_KEY=$API_KEY" > /app/config/.env
|
| 11 |
#RUN npm run build
|
| 12 |
# Start the server by default, this can be overwritten at runtime
|
| 13 |
EXPOSE 3000
|
| 14 |
|
| 15 |
+
CMD ["npm", "run", "dev"]
|