-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (32 loc) · 1.07 KB
/
Copy pathDockerfile
File metadata and controls
44 lines (32 loc) · 1.07 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
# Paper Reader - Dockerfile
# Multi-stage build for production
FROM python:3.10-slim as builder
WORKDIR /app
# Install build dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Install uv for faster package management
RUN pip install uv
# Copy and install dependencies
COPY pyproject.toml ./
RUN uv pip install --system --no-cache -r pyproject.toml
# Final stage
FROM python:3.10-slim
WORKDIR /app
# Install runtime dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy installed packages from builder
COPY --from=builder /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
COPY --from=builder /usr/local/bin /usr/local/bin
# Copy project files
COPY skills ./skills
COPY agent_adapters ./agent_adapters
COPY main_skill.py .
COPY SKILL.md .
# Create config directory
RUN mkdir -p /root/.paper-reader
# Default command
CMD ["python", "-c", "print('Paper Reader Docker Image. Use as a library or service.')"]