Skip to content

Instantly share code, notes, and snippets.

@TomaszGasior
Created November 4, 2025 17:25
Show Gist options
  • Select an option

  • Save TomaszGasior/5eb2465c83497e315914c1c3c52eec98 to your computer and use it in GitHub Desktop.

Select an option

Save TomaszGasior/5eb2465c83497e315914c1c3c52eec98 to your computer and use it in GitHub Desktop.
Run Jupyter Lab easily in Podman container
FROM docker.io/python:3.14.0-alpine3.22
RUN sh -ex <<EOF
apk add --no-cache --virtual build-deps gcc linux-headers musl-dev
pip install jupyterlab==4.4.10
apk del build-deps
EOF
RUN mkdir -p /data /jupyter
VOLUME /data /jupyter
ENV JUPYTER_CONFIG_DIR=/jupyter/config JUPYTER_DATA_DIR=/jupyter/data
WORKDIR /data
EXPOSE 8888/tcp
CMD ["jupyter-lab", "--allow-root", "--ip='*'", "--NotebookApp.token=''", "--no-browser"]
#!/bin/sh -xe
podman build -t jupyter-lab .
podman run \
-d \
--security-opt label=disable \
-p 8888:8888 \
--name jupyter-lab \
-v ./data:/data \
-v jupyter-lab_config:/jupyter \
jupyter-lab:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment