gfpgan/Dockerfile

22 lines
435 B
Docker
Raw Normal View History

2023-04-21 18:45:12 +08:00
FROM python:3.8.4-slim
WORKDIR /app
COPY requirements.txt /app
2023-04-23 10:13:54 +08:00
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
2023-04-21 18:45:12 +08:00
RUN pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple/
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y git
RUN apt-get install -y tk
RUN pip3 install --trusted-host pypi.python.org -r requirements.txt
COPY . /app
CMD ["python", "app.py"]