nanoppa commited on
Commit
c9f953b
·
verified ·
1 Parent(s): 10c8635

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +14 -0
  2. docker-entrypoint.sh +2 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:20-slim
2
+ WORKDIR /app
3
+ COPY . /app
4
+ RUN ls -al /app
5
+ RUN mkdir config
6
+ COPY w_env.ts /app/server/env.ts
7
+ # 将当前目录下的所有文件复制到工作目录
8
+ #ENV NODE_ENV=production
9
+ RUN npm install
10
+ #RUN npm run build
11
+ # Start the server by default, this can be overwritten at runtime
12
+ EXPOSE 3000
13
+
14
+ ENTRYPOINT ["./docker-entrypoint.sh"]
docker-entrypoint.sh ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ echo "GOOGLE_API_KEY="$API_KEY"" > /app/config/.env
2
+ npm run dev