DeepDanbooru/Dockerfile

17 lines
387 B
Docker
Raw Permalink Normal View History

#FROM python:3.8.13
FROM artifacts.iflytek.com/docker-private/atp/base_image_for_ailab:0.0.1
WORKDIR /app
COPY requirements.txt /app
RUN pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple
RUN pip install -r requirements.txt
COPY . /app
2023-04-26 10:25:25 +00:00
RUN cd DeepDanbooru && python setup.py install
ENV HF_TOKEN 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
CMD ["python", "app.py"]