Spaces:
Vinbor
/
Sleeping

ykl45 commited on
Commit
ac05177
1 Parent(s): eacaa42

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:lts AS BUILD_IMAGE
2
+ RUN apt-get update && apt-get install -y git
3
+ RUN git clone https://github.com/renqabs/gfa.git /app
4
+ WORKDIR /app
5
+
6
+ RUN yarn install --registry https://registry.npmmirror.com/ && yarn run build
7
+
8
+ FROM node:lts-alpine
9
+
10
+ COPY --from=BUILD_IMAGE /app/configs /app/configs
11
+ COPY --from=BUILD_IMAGE /app/package.json /app/package.json
12
+ COPY --from=BUILD_IMAGE /app/dist /app/dist
13
+ COPY --from=BUILD_IMAGE /app/public /app/public
14
+ COPY --from=BUILD_IMAGE /app/node_modules /app/node_modules
15
+
16
+ WORKDIR /app
17
+
18
+ EXPOSE 8000
19
+
20
+ CMD ["npm", "start"]