jupyter-simple/Dockerfile

34 lines
474 B
Docker
Raw Normal View History

FROM python:buster as build
RUN apt update && \
apt upgrade -y && \
pip install virtualenv && \
virtualenv /v
RUN . /v/bin/activate && \
pip install \
--no-cache-dir \
-U \
jupyterlab \
notebook \
voila \
nodeenv && \
nodeenv -p
FROM python:slim as run
COPY --from=build /v /v
RUN mkdir /data /root/.jupyter
COPY entrypoint.sh /e
COPY conf.py /.default.py
WORKDIR /data
VOLUME /data
VOLUME /root/.jupyter
EXPOSE 8888
ENTRYPOINT ["/e"]
CMD ["jupyter-lab"]