mrfrank-ofc commited on
Commit
c0b372c
·
verified ·
1 Parent(s): b50363a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -8,15 +8,16 @@ RUN apt-get update && \
8
 
9
  USER node
10
 
11
- RUN git clone https://[email protected]/mrfrank-ofc/Pair-Code-4.git /home/node/Pair-Code-4
 
12
 
13
  WORKDIR /home/node/Pair-Code-4
14
 
15
- RUN chmod -R 777 /home/node/Pair-Code-4/
16
 
17
  RUN yarn install --network-concurrency 1
18
 
19
- EXPOSE 9090
20
 
21
  ENV NODE_ENV=production
22
 
 
8
 
9
  USER node
10
 
11
+ RUN --mount=type=secret,id=CHUP_CHUP_KE,mode=0444,required=true \
12
+ git clone https://$(cat /run/secrets/CHUP_CHUP_KE)@github.com/mrfrank-ofc/Pair-Code-4.git /home/node/Pair-Code-4
13
 
14
  WORKDIR /home/node/Pair-Code-4
15
 
16
+ RUN chmod -R 777 /home/node/Pair-Code-4
17
 
18
  RUN yarn install --network-concurrency 1
19
 
20
+ EXPOSE 7860
21
 
22
  ENV NODE_ENV=production
23