FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim | |
# Change these to the repo and path you want to serve | |
ENV GITHUB_REPO=marimo-team/marimo | |
ENV GITHUB_ROOT_DIR=examples/ui | |
# Create a cache directory with appropriate permissions | |
RUN mkdir -p /.cache/uv && chown -R 1000:1000 /.cache | |
COPY main.py . | |
COPY templates/ templates/ | |
USER 1000 | |
CMD ["uv", "run", "--no-project", "main.py"] | |