A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
improvement: use uv in docker (#4475)
Myles Scolnick02c451f09e2a
diff --git a/docker/Dockerfile b/docker/Dockerfileindex 32708eb6f0..1d93de836c 100644--- a/docker/Dockerfile+++ b/docker/Dockerfile@@ -9,9 +9,10 @@ RUN useradd -m appuserWORKDIR /app-ARG marimo_version=0.8.15+ARG marimo_version=0.12.8ENV MARIMO_SKIP_UPDATE_CHECK=1-RUN pip install --no-cache-dir marimo==${marimo_version} && \+ENV UV_SYSTEM_PYTHON=1+RUN uv pip install --no-cache-dir marimo==${marimo_version} && \mkdir -p /app/data && \chown -R appuser:appuser /app@@ -29,10 +30,10 @@ CMD marimo edit --no-token -p $PORT --host $HOST# -data entry pointFROM base AS data-RUN pip install --no-cache-dir altair pandas numpy+RUN uv pip install --no-cache-dir marimo[recommended,lsp] altair pandas numpyCMD marimo edit --no-token -p $PORT --host $HOST# -sql entry point, extends -dataFROM data AS sql-RUN pip install --no-cache-dir marimo[sql]+RUN uv pip install --no-cache-dir marimo[recommended,lsp,sql]CMD marimo edit --no-token -p $PORT --host $HOSTdiff --git a/docker/README.md b/docker/README.mdnew file mode 100644index 0000000000..2c997af99f--- /dev/null+++ b/docker/README.md@@ -0,0 +1,23 @@+# Docker Images++This directory contains the Dockerfile for building marimo Docker images.++## Available Images++- `marimo-slim`: Minimal image with just marimo installed+- `marimo-data`: Includes marimo plus data science packages (pandas, numpy, altair) and marimo[recommended,lsp]+- `marimo-sql`: Extends the data image with SQL support (marimo[recommended,lsp,sql])++## Testing locally++To build all images, from the root++```bash+# Build your image, and tag it as my_app+docker build -t my_app . -f docker/Dockerfile++# Start your container, mapping port 8080+docker run -p 8080:8080 -it my_app++# Visit http://localhost:8080+```diff --git a/docs/guides/deploying/prebuilt_containers.md b/docs/guides/deploying/prebuilt_containers.mdindex 19088cfdf0..b3fe218987 100644--- a/docs/guides/deploying/prebuilt_containers.md+++ b/docs/guides/deploying/prebuilt_containers.md@@ -7,8 +7,8 @@ You can find the containers and tags on [marimo's GitHub packages page](https://We provide the following variants:- `marimo:latest` - The latest version of marimo-- `marimo:latest-data` - The latest version of marimo with `altair`, `pandas`, and `numpy` preinstalled.-- `marimo:latest-sql` - The latest version of marimo with `marimo[sql]` and `duckdb` preinstalled.+- `marimo:latest-data` - The latest version of marimo with `marimo[recommended,lsp]`, `altair`, `pandas`, and `numpy` preinstalled.+- `marimo:latest-sql` - The latest version of marimo with `marimo[recommended,lsp,sql]` preinstalled.or any particular version of marimo; for example, `marimo:0.8.3`, `marimo:0.8.3-data`, `marimo:0.8.3-sql`.