forked from FragileTech/plangym
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (29 loc) · 1.14 KB
/
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
FROM ubuntu:20.04
ARG JUPYTER_PASSWORD="plangym"
ARG ROM_PASSWORD=""
ENV BROWSER=/browser \
LC_ALL=en_US.UTF-8 \
LANG=en_US.UTF-8
COPY Makefile.docker Makefile
RUN apt-get update && \
apt-get install -y --no-install-suggests --no-install-recommends make cmake && \
make install-python3.8 && \
make install-common-dependencies && \
make install-python-libs && \
make install-env-deps
COPY . plangym/
RUN cd plangym \
&& make install-mujoco \
&& python3 -m pip install -r requirements-lint.txt \
&& python3 -m pip install -r requirements-test.txt \
&& python3 -m pip install -r requirements.txt \
&& python3 -m pip install ipython jupyter \
&& python3 -m pip install -e . \
&& ROM_PASSWORD=${ROM_PASSWORD} make import-roms \
&& git config --global init.defaultBranch master \
&& git config --global user.name "Whoever" \
&& git config --global user.email "[email protected]"
RUN make remove-dev-packages
RUN mkdir /root/.jupyter && \
echo 'c.NotebookApp.token = "'${JUPYTER_PASSWORD}'"' > /root/.jupyter/jupyter_notebook_config.py
CMD jupyter notebook --allow-root --port 8080 --ip 0.0.0.0