-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.gpu
39 lines (30 loc) · 1.28 KB
/
Dockerfile.gpu
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
32
33
34
35
36
37
38
39
FROM nvcr.io/nvidia/tensorflow:19.04-py3
VOLUME /project
WORKDIR /project
# Basic info
RUN cat /etc/*release && python --version
# ZDoom dependencies
RUN apt-get update && apt-get install --no-install-recommends -y libhdf5-dev \
build-essential zlib1g-dev libsdl2-dev libjpeg-dev \
nasm tar libbz2-dev libgtk2.0-dev cmake git libfluidsynth-dev libgme-dev \
libopenal-dev timidity libwildmidi-dev unzip curl && python --version
# Default python to python3
RUN which python \
&& which python3 \
&& update-alternatives --install /usr/bin/python python /usr/bin/python3 10 \
&& apt-get install -y python3-dev python3-pip \
&& python --version
# Boost libraries
RUN apt-get install -y libboost-all-dev \
&& python --version
COPY requirements.txt ./
RUN python -m pip install --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
## code formatter (https://github.com/ryantam626/jupyterlab_code_formatter)
#RUN apt-get install -y curl python-software-properties \
# && curl -sL https://deb.nodesource.com/setup_10.x | bash - \
# && apt-get install -y nodejs \
# && jupyter labextension install @ryantam626/jupyterlab_code_formatter \
# && pip install jupyterlab_code_formatter \
# && jupyter serverextension enable --py jupyterlab_code_formatter
EXPOSE 8888