-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (27 loc) · 1.04 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
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt clean && \
apt update && \
apt upgrade -y && \
apt install -y locales && \
locale-gen en_US.UTF-8
RUN apt install -y \
vim \
build-essential \
graphviz \
software-properties-common \
python3 \
python3-dev \
python3-pip \
python3-venv \
libboost-all-dev
RUN groupadd -r jupyter && useradd -m -d /workspace -g jupyter jupyter
USER jupyter
RUN python3 -m venv /workspace/venv && \
/workspace/venv/bin/pip install --no-cache-dir --upgrade pip && \
/workspace/venv/bin/pip install --no-cache-dir jupyter matplotlib tabulate
COPY --chown=jupyter . /workspace/pywfplan
RUN cd /workspace/pywfplan && \
/workspace/venv/bin/python setup.py install
EXPOSE 8888
CMD ["/workspace/venv/bin/jupyter", "notebook", "--port=8888", "--ip=0.0.0.0", "--no-browser", "--notebook-dir=/workspace"]