|
FROM jupyter/scipy-notebook |
|
|
|
|
|
WORKDIR /app |
|
|
|
|
|
COPY requirements.txt . |
|
|
|
COPY public /app/public |
|
|
|
|
|
USER root |
|
|
|
|
|
RUN apt-get update && apt-get install -y wget nginx && pip install -r requirements.txt |
|
|
|
|
|
USER ${NB_UID} |
|
|
|
|
|
COPY jupyter_config.py /etc/jupyterlab/jupyter_config.py |
|
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf |
|
|
|
|
|
EXPOSE 8888 |
|
|
|
|
|
EXPOSE 7860 |
|
|
|
|
|
ENV JUPYTERLAB_PORT=8888 |
|
ENV JUPYTERLAB_TOKEN=your_secret_token |
|
ENV NGINX_PORT=7860 |
|
|
|
|
|
COPY entrypoint.sh /app/entrypoint.sh |
|
RUN chmod +x /app/entrypoint.sh |
|
|
|
|
|
ENTRYPOINT ["/app/entrypoint.sh"] |