vit-gpt2-image-captioning/Dockerfile

18 lines
429 B
Docker
Raw Normal View History

2023-04-21 08:38:34 +00:00
#FROM python:3.8.13
FROM artifacts.iflytek.com/docker-private/atp/base_image_for_ailab:0.0.1
2023-04-21 04:52:56 +00:00
WORKDIR /app
2023-04-26 07:17:59 +00:00
COPY requirements.txt /app
2023-04-21 04:52:56 +00:00
RUN pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple
RUN pip install -r requirements.txt
2023-04-21 11:18:33 +00: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 07:17:59 +00:00
COPY . /app
2023-04-21 04:52:56 +00:00
CMD ["python", "app.py"]