-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathDockerfile
29 lines (18 loc) · 844 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
FROM python:3.10-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN mkdir notebooks
COPY ./notebooks/ ./notebooks/
# Puerto de jupyter
EXPOSE 8888 8787 8880 8881 8882 8883 8889
# Configurar Jupyter Lab para aceptar conexiones desde cualquier IP
RUN jupyter notebook --generate-config
RUN echo "c.NotebookApp.ip = '0.0.0.0'" >> /root/.jupyter/jupyter_notebook_config.py
RUN echo "c.NotebookApp.allow_root = True" >> /root/.jupyter/jupyter_notebook_config.py
RUN mkdir -p /root/.jupyter/lab/user-settings/@jupyterlab/apputils-extension && \
echo '{"theme": "JupyterLab Dark"}' > /root/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/themes.jupyterlab-settings
RUN apt-get update && apt-get install -y graphviz
COPY start.sh /start.sh
RUN chmod +x /start.sh
CMD ["/start.sh"]