-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (20 loc) · 686 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (20 loc) · 686 Bytes
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
# syntax=docker/dockerfile:1.4
# Choose a python version that you know works with your application
FROM python:3.13-slim
# Install uv for fast package management
COPY --from=ghcr.io/astral-sh/uv:0.4.20 /uv /bin/uv
ENV UV_SYSTEM_PYTHON=1
WORKDIR /app
# Copy requirements file
COPY --link requirements.txt .
# Install the requirements using uv
RUN uv pip install -r requirements.txt
# Copy application files
# COPY --link app.py .
# Uncomment the following line if you need to copy additional files
COPY --link . .
EXPOSE 8080
# Create a non-root user and switch to it
RUN useradd -m app_user
USER app_user
CMD [ "marimo", "run", "src/app.py", "--host", "0.0.0.0", "-p", "8080" ]