| 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 |
|
|
| |
| COPY jupyter_config.py /etc/jupyter/jupyter_config.py |
| COPY nginx.conf /etc/nginx/nginx.conf |
| COPY entrypoint.sh /app/entrypoint.sh |
|
|
| |
| RUN chmod +x /app/entrypoint.sh |
|
|
| |
| RUN chown -R ${NB_UID}:${NB_GID} /app |
|
|
| |
| USER ${NB_UID} |
|
|
| |
| WORKDIR /home/${NB_USER}/app |
|
|
| |
| EXPOSE 8888 |
|
|
| |
| EXPOSE 7860 |
|
|
| |
| ENV JUPYTERLAB_PORT=8888 |
| ENV JUPYTERLAB_TOKEN=your_secret_token |
| ENV NGINX_PORT=7860 |
|
|
| |
| ENTRYPOINT ["/app/entrypoint.sh"] |
|
|