Spaces:
Running
Running
File size: 1,324 Bytes
170c9d2 c2eb2ee e5f629c c2eb2ee 172da20 e5f629c 172da20 e5f629c 172da20 f7bf2b3 e5f629c 3e354e8 172da20 c8319ef 172da20 c2eb2ee e5f629c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
FROM python:3.11.11
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/
WORKDIR /app
COPY requirements.txt .
COPY . .
RUN mkdir -p /app/.cache/akn && \
chmod -R 777 /app/.cache
RUN chown -R 1000:0 .
RUN pip3 install --upgrade pip setuptools
RUN pip3 install -r requirements.txt
RUN wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz && \
wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz.md5 && \
md5sum -c ffmpeg-git-amd64-static.tar.xz.md5 && \
tar xvf ffmpeg-git-amd64-static.tar.xz && \
mv ffmpeg-git*/ffmpeg ffmpeg-git*/ffprobe /usr/local/bin/
EXPOSE 7860
CMD ["bash", "-c", "python3 server.py & python3 -m akn"] |