File size: 706 Bytes
83e35a7 |
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 |
FROM ubuntu:22.04
WORKDIR /opt/
EXPOSE 5000
RUN apt-get update
RUN apt-get install -yq ffmpeg
RUN apt-get install -yq python3 python3-dev python3-pip
RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
RUN apt-get install -yq build-essential cmake && \
apt-get install -yq libopenblas-dev liblapack-dev && \
pip install dlib
COPY ./backend backend
COPY ./output_template output_template
COPY ./static static
COPY ./templates templates
COPY app.py ./
RUN mkdir video
RUN mkdir output
CMD ["python3", "-m", "flask", "--app", "app", "run", "--host=0.0.0.0"] |