File size: 509 Bytes
3ab380c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80bbaaa
3ab380c
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM node:lts-buster
USER root

RUN apt-get update && \
    apt-get install -y ffmpeg webp git && \
    apt-get upgrade -y && \
    rm -rf /var/lib/apt/lists/*

USER node

RUN --mount=type=secret,id=MR_FRANK,mode=0444,required=true \
    git clone https://$(cat /run/secrets/MR_FRANK)@github.com/mrfrank-ofc/TEST-API.git /home/node/TEST-API

WORKDIR /home/node/TEST-API

RUN chmod -R 777 /home/node/TEST-API

RUN yarn install --network-concurrency 1

EXPOSE 7860

ENV NODE_ENV=production

CMD ["npm", "start"]