Dockerfile 382 B

123456789101112131415
  1. FROM python:3.9
  2. MAINTAINER Liufan<1649750212@qq.com>
  3. ENV PYTHONUNBUFFERED 1
  4. COPY . /code
  5. WORKDIR /code
  6. RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
  7. RUN pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu -i https://pypi.tuna.tsinghua.edu.cn/simple
  8. EXPOSE 9361
  9. ENTRYPOINT ["/bin/sh","startup.sh"]