Segizu commited on
Commit
ea55e2e
1 Parent(s): a48ccbf

notebook v1

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -11
Dockerfile CHANGED
@@ -1,23 +1,23 @@
1
  FROM tensorflow/tensorflow:2.12.0-gpu
2
 
3
- # Crear carpeta segura
4
- WORKDIR /workspace
5
 
6
- # Establecer variables necesarias para evitar errores en /.local
7
- ENV HOME=/workspace
8
- ENV JUPYTER_RUNTIME_DIR=/workspace/.jupyter_runtime
9
- ENV JUPYTER_DATA_DIR=/workspace/.jupyter_data
10
- ENV JUPYTER_CONFIG_DIR=/workspace/.jupyter_config
11
 
12
  # Crear carpetas necesarias
13
  RUN mkdir -p $JUPYTER_RUNTIME_DIR $JUPYTER_DATA_DIR $JUPYTER_CONFIG_DIR
14
 
15
- # Copiar requerimientos y c贸digo
16
  COPY requirements.txt .
17
  RUN pip install --upgrade pip && pip install -r requirements.txt
18
 
 
19
  COPY . .
20
 
21
- # Lanzar Jupyter Notebook sin contrase帽a ni token
22
- CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--allow-root", "--NotebookApp.token=''", "--NotebookApp.password=''", "--NotebookApp.notebook_dir=/workspace", "--no-browser"]
23
-
 
1
  FROM tensorflow/tensorflow:2.12.0-gpu
2
 
3
+ # Establecer directorio de trabajo
4
+ WORKDIR /app
5
 
6
+ # Variables de entorno para evitar errores de permisos
7
+ ENV HOME=/tmp
8
+ ENV JUPYTER_RUNTIME_DIR=/tmp/jupyter_runtime
9
+ ENV JUPYTER_DATA_DIR=/tmp/jupyter_data
10
+ ENV JUPYTER_CONFIG_DIR=/tmp/jupyter_config
11
 
12
  # Crear carpetas necesarias
13
  RUN mkdir -p $JUPYTER_RUNTIME_DIR $JUPYTER_DATA_DIR $JUPYTER_CONFIG_DIR
14
 
15
+ # Instalar dependencias
16
  COPY requirements.txt .
17
  RUN pip install --upgrade pip && pip install -r requirements.txt
18
 
19
+ # Copiar el resto del c贸digo
20
  COPY . .
21
 
22
+ # Ejecutar Jupyter sin token ni contrase帽a
23
+ CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--allow-root", "--NotebookApp.token=''", "--NotebookApp.password=''", "--NotebookApp.notebook_dir=/app", "--no-browser"]