Dockerfile 298 B

12345678910111213
  1. FROM python:3.10.4
  2. RUN mkdir /app
  3. COPY . /app
  4. RUN python -m pip install paddlepaddle==2.5.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
  5. RUN cd /app && pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
  6. WORKDIR /app
  7. ENTRYPOINT ["python"]
  8. CMD ["main.py", "--production"]