Basementup commited on
Commit
2bacc84
·
verified ·
1 Parent(s): 11fc323

Create dockerfile - python

Browse files
Files changed (1) hide show
  1. dockerfile - python +28 -0
dockerfile - python ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dockerfile
2
+ FROM python:3.10-slim
3
+
4
+ LABEL maintainer="Dwayne Galloway"
5
+ LABEL description="FOS Complaint Tracker Suite - Automated case monitoring"
6
+
7
+ # Set working directory
8
+ WORKDIR /app
9
+
10
+ # Install system dependencies (optional, for debugging or future OCR)
11
+ RUN apt-get update && apt-get install -y --no-install-recommends \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ # Install Python dependencies
15
+ COPY requirements.txt .
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Copy all Python modules
19
+ COPY config.py pdf_parser.py email_watcher.py scheduler.py notifier.py main.py ./
20
+
21
+ # Create directories for persistent data (PDFs, reports, tokens)
22
+ RUN mkdir -p /app/data /app/reports
23
+
24
+ # Define volumes for persistent storage
25
+ VOLUME ["/app/data", "/app/reports"]
26
+
27
+ # Default command – runs the orchestrator
28
+ CMD ["python", "main.py"]