nanoppa commited on
Commit
ae25738
·
verified ·
1 Parent(s): c515e8a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 chmod 777 /app/docker-entrypoint.sh
11
  #RUN npm run build
12
  # Start the server by default, this can be overwritten at runtime
13
  EXPOSE 3000
14
 
15
- ENTRYPOINT ["/app/docker-entrypoint.sh"]
 
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"]