File size: 763 Bytes
3441f4d 410aee5 3441f4d 410aee5 1f511aa 3441f4d 410aee5 3441f4d 410aee5 3441f4d acb89d0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | FROM python:3.12-slim
COPY --from=ghcr.io/astral-sh/uv:0.10.9 /uv /bin/uv
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user
ENV PATH="/home/user/.local/bin:$PATH"
ENV UV_SYSTEM_PYTHON=1
COPY --link requirements.txt .
COPY --link . .
WORKDIR /app
COPY --chown=user ./requirements.txt requirements.txt
RUN uv pip install --no-cache-dir -r requirements.txt --upgrade
ENV PYTHONPATH=/app:$PYTHONPATH
ENV MARIMO_OUTPUT_MAX_BYTES=100000000
COPY --chown=user . /app
RUN mkdir -p /app/__marimo__ && \
chown -R user:user /app && \
chmod -R 755 /app
USER user
EXPOSE 7860
CMD ["marimo", "run", "main_app.py", "--include-code", "--host", "0.0.0.0", "--port", "7860"]
|