This repository has been archived on 2022-07-15. You can view files and clone it, but cannot push or open issues or pull requests.
mmp-osp1/Dockerfile.cpu
Oscar Pocock 74875553d5
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Dockerfile installs from requirements.txt
2022-04-28 22:15:33 +01:00

17 lines
No EOL
379 B
Text

FROM python:3.8
RUN apt update -y
RUN apt install libgl1 -y # or install opencv opencv-python-headless instead
RUN pip3 install \
torch==1.10.2+cpu \
torchvision==0.11.3+cpu \
torchaudio==0.10.2+cpu \
-f https://download.pytorch.org/whl/cpu/torch_stable.html
COPY requirements.txt /requirements.txt
RUN pip3 install -r requirements.txt
ENTRYPOINT ["bash"]