test377 / Dockerfile
ahmetalper's picture
Update Dockerfile
0065332 verified
raw
history blame contribute delete
274 Bytes
FROM node
RUN useradd -m -u 1001 user
ENV HOME=/home/user
ENV PATH=/home/user/.local/bin:$PATH
USER user
WORKDIR $HOME/app
RUN --mount=type=secret,id=URL,mode=0444,required=true \
git clone $(cat /run/secrets/URL) .
RUN npm install
CMD ["node", "backend/index.js"]