cheymin commited on
Commit
baeddc5
·
verified ·
1 Parent(s): 94cc807

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM alpine AS builder
2
+
3
+ RUN apk add --no-cache nodejs npm git
4
+
5
+ RUN adduser -D app
6
+ USER app
7
+ WORKDIR /home/app
8
+
9
+ RUN git clone https://github.com/mindjkl/114514.git 114514
10
+ WORKDIR /home/app/114514
11
+ RUN npm ci --omit dev && npm run download-dist
12
+
13
+ EXPOSE 3001
14
+ CMD ["node", "server/server.js"]