2026-03-16 13:35:11 +01:00
|
|
|
FROM python:3.12-slim
|
2026-03-18 08:27:33 +01:00
|
|
|
|
2026-03-18 10:01:19 +01:00
|
|
|
# No system packages needed - we use Python (psycopg2-binary) for PostgreSQL checks
|
2026-03-18 08:27:33 +01:00
|
|
|
|
2026-03-16 13:35:11 +01:00
|
|
|
WORKDIR /app
|
2026-03-18 08:27:33 +01:00
|
|
|
|
|
|
|
|
# Install Python dependencies
|
2026-03-16 13:35:11 +01:00
|
|
|
COPY requirements.txt .
|
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
2026-03-18 08:27:33 +01:00
|
|
|
|
|
|
|
|
# Copy application code
|
2026-03-16 13:35:11 +01:00
|
|
|
COPY . .
|
2026-03-18 08:27:33 +01:00
|
|
|
|
|
|
|
|
# Create directories
|
2026-03-16 13:35:11 +01:00
|
|
|
RUN mkdir -p /app/data /app/photos
|
2026-03-18 08:27:33 +01:00
|
|
|
|
|
|
|
|
# Make startup script executable
|
|
|
|
|
RUN chmod +x /app/startup.sh
|
|
|
|
|
|
|
|
|
|
# Use startup script instead of direct uvicorn
|
|
|
|
|
CMD ["/app/startup.sh"]
|