approve-dev / Dockerfile
randydev's picture
Update Dockerfile
d85d011 verified
raw
history blame
1.05 kB
FROM python:3.10
WORKDIR /app
WORKDIR /.cache
RUN apt -qq update && \
apt -qq install -y --no-install-recommends \
ffmpeg \
curl \
git \
gnupg2 \
unzip \
wget \
xvfb \
libxi6 \
libgconf-2-4 \
libappindicator3-1 \
libxrender1 \
libxtst6 \
libnss3 \
libatk1.0-0 \
libxss1 \
fonts-liberation \
libasound2 \
libgbm-dev \
libu2f-udev \
libvulkan1 \
libgl1-mesa-dri \
xdg-utils \
python3-dev \
python3-pip \
libavformat-dev \
libavcodec-dev \
libavdevice-dev \
libavfilter-dev \
libavutil-dev \
libswscale-dev \
libswresample-dev \
neofetch && \
apt-get clean && \
rm -rf /var/lib/apt/lists/
COPY . .
COPY requirements.txt .
RUN pip3 install --upgrade pip setuptools
RUN pip3 install -r requirements.txt
RUN chown -R 1000:0 .
RUN chmod 777 .
RUN chown -R 1000:0 /app
RUN chmod 777 /app
RUN chown -R 1000:0 /.cache
RUN chmod 777 /.cache
EXPOSE 7860
CMD ["bash", "-c", "python3 server.py & python3 main.py"]