ssssssss / Dockerfile
ShadowVNs's picture
Update Dockerfile
ba386ef verified
raw
history blame contribute delete
406 Bytes
FROM node:latest
RUN mkdir /home/user && chown node:node /home/user
RUN sudo apt-get update
RUN sudo apt-get install -y libnss3 libatk-bridge2.0-0 libxcomposite1 libxrandr2 libgbm-dev libasound2 libpangocairo-1.0-0 libatk1.0-0 libcups2 libgtk-3-0
WORKDIR /home/user
USER node
COPY --chown=node:node package*.json ./
RUN npm install
COPY --chown=node:node . .
EXPOSE 7860
CMD [ "node", "index.js" ]