2023-06-27 11:27:47 +01:00
|
|
|
FROM ubuntu:22.04
|
2017-12-21 23:13:47 +01:00
|
|
|
|
2020-10-24 06:42:04 -04:00
|
|
|
# To disable tzdata and others from asking for input
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
2023-06-27 11:27:47 +01:00
|
|
|
ENV FACESWAP_BACKEND cpu
|
2020-10-24 06:42:04 -04:00
|
|
|
|
2023-06-27 11:27:47 +01:00
|
|
|
RUN apt-get update -qq -y
|
|
|
|
|
RUN apt-get upgrade -y
|
|
|
|
|
RUN apt-get install -y libgl1 libglib2.0-0 python3 python3-pip python3-tk git
|
2017-12-21 23:13:47 +01:00
|
|
|
|
2023-06-27 11:27:47 +01:00
|
|
|
RUN ln -s $(which python3) /usr/local/bin/python
|
|
|
|
|
|
|
|
|
|
RUN git clone --depth 1 --no-single-branch https://github.com/deepfakes/faceswap.git
|
|
|
|
|
WORKDIR "/faceswap"
|
|
|
|
|
|
|
|
|
|
RUN python -m pip install --upgrade pip
|
|
|
|
|
RUN python -m pip --no-cache-dir install -r ./requirements/requirements_cpu.txt
|
2017-12-19 16:42:12 +01:00
|
|
|
|
2019-02-26 22:34:43 +08:00
|
|
|
CMD ["/bin/bash"]
|