-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
53 lines (45 loc) · 896 Bytes
/
Dockerfile
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FROM python:3.9
RUN apt-get -y update && \
apt-get install -y --no-install-recommends \
build-essential \
git \
wget \
ca-certificates \
libblas-dev \
liblapack-dev \
ffmpeg \
dvipng \
cm-super \
texlive-xetex \
texlive-fonts-recommended \
texlive-plain-generic && \
apt-get clean && rm -rf /var/lib/apt/lists/*
RUN pip install -U \
black \
gym \
numpy \
pyglet \
pytest \
sacred \
scipy \
scikit-learn \
matplotlib \
notebook \
jupyterlab \
jupytext \
tqdm
# The following is to enable Binder compatibility using a Dockerfile.
ARG NB_USER=root
ARG NB_UID=0
ENV USER ${NB_USER}
ENV HOME /home
RUN if [[ "$arg" != "root" ]] ; then adduser --disabled-password \
--gecos "Default user" \
--uid ${NB_UID} \
${NB_USER} ; fi
COPY . ${HOME}
USER root
RUN chown -R ${NB_UID} ${HOME}
WORKDIR ${HOME}
RUN pip install .
USER ${USER}