This commit is contained in:
2024-08-07 21:01:30 +00:00
parent 14519259d8
commit 80319e0301
6 changed files with 5431 additions and 2658 deletions
-32
View File
@@ -1,32 +0,0 @@
# -------------------------------------------------------
# Relies on JUPYTER_PORT being set in docker-compose.yml
# -------------------------------------------------------
FROM pytorch/pytorch:latest
# RUN useradd -m -s /bin/bash oleg
# Install packages
# --- this version of jupyter is required to work with the widgets
RUN pip install jupyterlab==3.6.7
#
RUN pip install ipywidgets
RUN pip install pandas numpy plotly
#
RUN pip install fastbook
# Install additional applications
RUN apt update
RUN apt-get install graphviz -y
# Set environment variables, etc.
#ENV MY_ENV_VAR=myvalue
# Set the working directory
WORKDIR /workspace
# Expose the port for JupyterLab
EXPOSE ${JUPYTER_PORT}
# Command to run JupyterLab
CMD ["jupyter-lab", "--ip=0.0.0.0", "--port=7777", "--no-browser", "--allow-root", "--NotebookApp.token=''"]
+4 -3
View File
@@ -7,8 +7,9 @@ version: '3.8'
#==================================================
services:
jupyter:
build: ${ROOT_DIR}
image: cvtt/fastai:v0.0.1
# build: ${ROOT_DIR}
# image: cvtt/fastai:v0.0.1
image: cloud21.cvtt.vpn:5500/fastai_jupyter:latest
container_name: fastai_jupyter
runtime: nvidia
restart: unless-stopped
@@ -19,7 +20,7 @@ services:
- ${ROOT_DIR}/jupyter_settings/user-settings:/root/.jupyter/lab/user-settings
- ${ROOT_DIR}/jupyter_settings/workspaces:/root/.jupyter/lab/workspaces
- ${ROOT_DIR}/.cache/torch:/root/.cache/torch
# - /opt/jupyter_gpu/data:/workspace/data
ports:
- "${JUPYTER_PORT}:${JUPYTER_PORT}"
shm_size: "8gb"