-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
33 lines (26 loc) · 906 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
FROM jupyter/base-notebook as base
USER root
# Install requirements for pygraphviz and stuff for interacting with git
RUN apt-get update && \
apt-get install -y --no-install-recommends \
gcc \
python3-dev \
graphviz \
graphviz-dev\
gnupg2 \
git \
openssh-client && \
rm -rf /var/lib/apt/lists/* && \
echo "${NB_USER} ALL=(ALL) NOPASSWD:ALL" | tee -a /etc/sudoers
USER ${NB_USER}
# Install in the default python3 environment
RUN pip install --no-cache-dir 'flake8' && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
# Install from the requirements.txt file
COPY --chown=${NB_UID}:${NB_GID} requirements.txt /tmp/
RUN pip install --no-cache-dir --requirement /tmp/requirements.txt && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
RUN playwright install --with-deps chromium
WORKDIR /workspaces