puppeter-playground / Dockerfile
Nexchan's picture
Update Dockerfile
ad8f566 verified
raw
history blame
No virus
615 Bytes
FROM python:latest
ENV PYTHONUNBUFFERED 1
EXPOSE 7860
RUN apt update
RUN apt upgrade -y
RUN apt install curl -y
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
RUN apt install nodejs -y
RUN apt install neofetch -y
RUN apt install ffmpeg -y
RUN apt --yes install libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libasound2 libpangocairo-1.0-0 libxss1 libgtk-3-0
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user package*.json .
RUN npm install
COPY --chown=user . .
CMD [ "node", "index.js" ]