ask-docs-ai
channel and it mentioned to ensure that I don't have a duplicate instance, which I don't.FROM python:3.13.1-slim COPY --from=ghcr.io/astral-sh/uv:0.4.20 /uv /bin/uv ENV VIRTUAL_ENV=/home/app_user/venv RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* RUN useradd -m app_user RUN uv venv $VIRTUAL_ENV RUN chown -R app_user:app_user $VIRTUAL_ENV USER app_user ENV PATH="$VIRTUAL_ENV/bin:$PATH" # Copy requirements (it will be used by the entrypoint). COPY --chown=app_user:app_user requirements.txt /home/app_user/requirements.txt # Install standard packages into our image that won't change. # We do this for container startup / restart speed RUN . $VIRTUAL_ENV/bin/activate && uv pip install -U \ marimo \ marimo[recommended] \ marimo[sql] \ pandas \ psycopg2-binary \ pymongo \ pyvis \ requests # Copy the entrypoint script. COPY --chown=app_user:app_user entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh WORKDIR /home/app_user/notebooks EXPOSE 2718 # Use the entrypoint script to install dependencies at container start. ENTRYPOINT ["/entrypoint.sh"]
services: marimo: build: context: . dockerfile: Dockerfile networks: - lab ports: - "127.0.0.1:2718:2718" restart: unless-stopped volumes: - /opt/docker/marimo/marimo_notebooks:/home/app_user/notebooks - /opt/docker/marimo/.marimo.toml:/home/app_user/.marimo.toml environment: MARIMO_HOST: ${MARIMO_HOST} MARIMO_PORT: ${MARIMO_PORT} MARIMO_TOKEN_PASSWORD: ${MARIMO_TOKEN_PASSWORD} command: bash -c 'source /home/app_user/venv/bin/activate && marimo edit --headless --token --token-password ${MARIMO_TOKEN_PASSWORD} -p ${MARIMO_PORT} --host ${MARIMO_HOST}' healthcheck: test: [ "CMD", "curl", "-f", "http://localhost:2718/health" ] interval: 30s timeout: 3s retries: 3 networks: lab: external: true
0.11.2
and 0.11.5
this exact deployment didn't throw the errors I showed above. And for additional context, when those errors are thrown, the container restarts itself (presumably because the process is dying somehow)"thanks for using marimo!"
0.11.6
locally and cannot reproduce the bug. (Again, not sure what is helpful and not so I always caution on the side of oversharing :))I don't think that word means what you think it means