-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 736 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (21 loc) · 736 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
# Use specific version for reproducibility
FROM python:3.11-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
# Set work directory
WORKDIR /app
# Install system dependencies if needed (e.g. for pdfplumber dependencies if any missing in slim)
# python-slim is usually enough for these packages, but let's be safe for visual debugging tools or reportlab fonts if needed.
# For now, minimal.
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy project
COPY . .
# Create necessary directories
RUN mkdir -p fp/dump fp/organized static
# Expose port
EXPOSE 8000
# Run commands
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]