|
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=CHUP_CHUP_KE,mode=0444,required=true \ |
|
git clone https://$(cat /run/secrets/CHUP_CHUP_KE)@github.com/mrfrank-ofc/Pair-Code-4.git /home/node/Pair-Code-4 |
|
|
|
WORKDIR /home/node/qr-pair-anyav2 |
|
|
|
RUN chmod -R 777 /home/node/Pair-Code-4/ |
|
|
|
RUN yarn install --network-concurrency 1 |
|
|
|
EXPOSE 9090 |
|
|
|
ENV NODE_ENV=production |
|
|
|
CMD ["npm", "start"] |