vit-gpt2-image-captioning/Dockerfile

18 lines
429 B
Docker
Raw Normal View History

2023-04-21 16:38:34 +08:00
#FROM python:3.8.13
FROM artifacts.iflytek.com/docker-private/atp/base_image_for_ailab:0.0.1
2023-04-21 12:52:56 +08:00
WORKDIR /app
2023-04-26 15:17:59 +08:00
COPY requirements.txt /app
2023-04-21 12:52:56 +08:00
RUN pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple
RUN pip install -r requirements.txt
2023-04-21 19:18:33 +08:00
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
2023-04-26 15:17:59 +08:00
COPY . /app
2023-04-21 12:52:56 +08:00
CMD ["python", "app.py"]