woiceatus commited on
Commit
00b6ad2
·
1 Parent(s): 8b5482f

add docker file for hugginface space

Browse files
Files changed (2) hide show
  1. .dockerignore +8 -0
  2. Dockerfile +16 -0
.dockerignore ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ node_modules
2
+ npm-debug.log
3
+ .git
4
+ .gitignore
5
+ .env
6
+ .env.*
7
+ doc
8
+ test
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:20-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY package.json package-lock.json ./
6
+ RUN npm ci --omit=dev
7
+
8
+ COPY public ./public
9
+ COPY src ./src
10
+
11
+ ENV NODE_ENV=production
12
+ ENV PORT=7860
13
+
14
+ EXPOSE 7860
15
+
16
+ CMD ["npm", "start"]