-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 759 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 759 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
FROM ghcr.io/astral-sh/uv:0.6.17-python3.13-bookworm
RUN useradd -m devuser
RUN mkdir -p /app
RUN chown devuser:devuser /app
WORKDIR /app
# Ensure Python output is not buffered (visible immediately in docker logs)
ENV PYTHONUNBUFFERED=1
USER devuser
# Set up the python environment with uv
RUN uv init
RUN uv add dropbox google-api-python-client google-auth google-auth-oauthlib mistralai openai textual
RUN uv sync
# Copy source code
COPY --chown=devuser:devuser main.py .
COPY --chown=devuser:devuser papersort/ papersort/
COPY --chown=devuser:devuser models/ models/
COPY --chown=devuser:devuser storage/ storage/
COPY --chown=devuser:devuser utils/ utils/
COPY --chown=devuser:devuser workflows/ workflows/
CMD ["uv", "run", "main.py", "--ingest"]