您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Dockerfile 687B

1234567891011121314151617181920212223242526272829
  1. FROM ubuntu:22.04 as base
  2. RUN apt-get update
  3. ENV TZ="Asia/Taipei"
  4. RUN apt-get install -yq \
  5. build-essential \
  6. curl \
  7. libncursesw5-dev \
  8. libssl-dev \
  9. libsqlite3-dev \
  10. libgdbm-dev \
  11. libc6-dev \
  12. libbz2-dev \
  13. software-properties-common \
  14. python3.11 python3.11-dev python3-pip
  15. RUN apt-get install -yq git
  16. RUN pip3 config set global.index-url https://mirror.baidu.com/pypi/simple
  17. RUN pip3 config set global.trusted-host mirror.baidu.com
  18. RUN pip3 install --upgrade pip
  19. RUN pip3 install torch==2.0.1
  20. RUN pip3 install torch-model-archiver==0.8.2
  21. RUN pip3 install torchvision==0.15.2
  22. COPY requirements.txt .
  23. WORKDIR /docgpt
  24. ENV PYTHONPATH=/docgpt/