Skip to content

Commit e945515

Browse files
committed
Updated Dockerfile.
This commit replaces uses JupyterLab image as base image and fixes issues accessing the Jupyter server.
1 parent 497ba43 commit e945515

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

Dockerfile

+17-10
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,30 @@
1414
# limitations under the License.
1515
#
1616

17-
ARG base_image=rayproject/ray:1.4.0-py38
17+
ARG base_image=jupyter/minimal-notebook:59c973d16bca
1818
FROM ${base_image}
1919

2020
USER root
21-
RUN apt-get update && apt-get install -y build-essential
22-
USER ray
21+
RUN chgrp -R 0 /home/jovyan && \
22+
chmod -R 777 /home/jovyan
2323

24-
COPY --chown=ray:users setup.py requirements.txt codeflare/
25-
COPY --chown=ray:users codeflare codeflare/codeflare
26-
COPY --chown=ray:users notebooks codeflare/notebooks
27-
COPY --chown=ray:users resources codeflare/resources
24+
# install graphviz
25+
RUN apt-get update && \
26+
apt-get install -y graphviz
27+
28+
USER $NB_UID
29+
30+
COPY --chown=jovyan:0 setup.py requirements.txt codeflare/
31+
COPY --chown=jovyan:0 codeflare codeflare/codeflare
32+
COPY --chown=jovyan:0 notebooks codeflare/notebooks
33+
COPY --chown=jovyan:0 resources codeflare/resources
34+
35+
ENV JUPYTER_ENABLE_LAB=yes
2836

29-
RUN pip install jupyterlab
3037
RUN pip install matplotlib
3138
RUN pip install lale
3239
RUN pip install arff
33-
3440
RUN pip install -r ./codeflare/requirements.txt
41+
RUN pip install -e ./codeflare
3542

36-
RUN pip install -e ./codeflare
43+
CMD start-notebook.sh --NotebookApp.token='' --NotebookApp.password=''

0 commit comments

Comments
 (0)