Created
November 4, 2025 17:25
-
-
Save TomaszGasior/5eb2465c83497e315914c1c3c52eec98 to your computer and use it in GitHub Desktop.
Run Jupyter Lab easily in Podman container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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