marimo-rtc / Dockerfile
mylessss's picture
perms
62a0741
raw
history blame
632 Bytes
FROM python:3.12
COPY --from=ghcr.io/astral-sh/uv:0.7.3 /uv /uvx /bin/
# Set environment variables
ENV VIRTUAL_ENV=/opt/venv \
PATH="/opt/venv/bin:$PATH" \
UV_CACHE_DIR=/tmp/.cache/uv
# Create directories and set permissions
RUN mkdir -p /data /tmp/.cache/uv && \
chown -R nobody:nogroup /tmp/.cache/uv && \
chmod -R 777 /tmp/.cache/uv
# Set working directory
WORKDIR /data
# Install dependencies using uv and pyproject.toml
COPY ./pyproject.toml ./pyproject.toml
RUN uv sync
# Copy examples
COPY ./examples ./examples
CMD ["uv", "run", "marimo", "edit", "/data", "--host", "0.0.0.0", "--port", "7860", "--no-token"]