notebook v1
Browse files- Dockerfile +11 -11
Dockerfile
CHANGED
@@ -1,23 +1,23 @@
|
|
1 |
FROM tensorflow/tensorflow:2.12.0-gpu
|
2 |
|
3 |
-
#
|
4 |
-
WORKDIR /
|
5 |
|
6 |
-
#
|
7 |
-
ENV HOME=/
|
8 |
-
ENV JUPYTER_RUNTIME_DIR=/
|
9 |
-
ENV JUPYTER_DATA_DIR=/
|
10 |
-
ENV JUPYTER_CONFIG_DIR=/
|
11 |
|
12 |
# Crear carpetas necesarias
|
13 |
RUN mkdir -p $JUPYTER_RUNTIME_DIR $JUPYTER_DATA_DIR $JUPYTER_CONFIG_DIR
|
14 |
|
15 |
-
#
|
16 |
COPY requirements.txt .
|
17 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|
18 |
|
|
|
19 |
COPY . .
|
20 |
|
21 |
-
#
|
22 |
-
CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--allow-root", "--NotebookApp.token=''", "--NotebookApp.password=''", "--NotebookApp.notebook_dir=/
|
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"]
|
|