forked from jacobaparker/test-ib-env
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDOCKERFILE
More file actions
31 lines (20 loc) · 1.04 KB
/
DOCKERFILE
File metadata and controls
31 lines (20 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# use the standard docker image of python 3.11.7 on a slim version of Debian Bookworm
FROM python:3.11.7-slim-bookworm
COPY py-requirements.txt ./
COPY py-requirements-no-cuda.txt ./
ENV DEBIAN_FRONTEND=noninteractive
# gfortran is required to build the ndd python package
RUN apt update && apt install -y gfortran git && rm -rf /var/lib/apt/lists/*
# numpy is required before ndd can be built
RUN pip install numpy
# normal install for computers with an nvidia GPU
RUN pip install -r py-requirements.txt
# install for computers without an nvidia GPU (e.g. Apple M1 chip computers)
# RUN pip install -r py-requirements-no-cuda.txt
####### raw commands in case requirements files do not work #######
# RUN pip install ndd pandas matplotlib seaborn embo notebook
# command for computers with an nvidia GPU
# RUN pip install torch torchvision torchaudio
# command for computers without an nvidia GPU
# RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
# RUN pip install pyro-ppl