Proxytest0987 commited on
Commit
38447f3
·
verified ·
1 Parent(s): 1280160

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Node 20 + 最小サイズ
2
+ FROM node:20-alpine
3
+
4
+ WORKDIR /app
5
+ COPY package.json package-lock.json* ./
6
+ RUN npm ci --omit=dev || npm install --production
7
+
8
+ COPY . .
9
+ ENV NODE_ENV=production
10
+ # Spaces 既定ポートは 7860(PORT が与えられるのでそれを優先)
11
+ ENV PORT=7860
12
+ EXPOSE 7860
13
+
14
+ CMD ["npm","start"]