Aqarion commited on
Commit
ef79417
·
verified ·
1 Parent(s): 2ad9998

Create PRODUCTION-DOCKERFILE.PY

Browse files
DOCKER/CLAUDE/PRODUCTION-DOCKERFILE.PY ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dockerfile.production
2
+ FROM python:3.10-slim
3
+
4
+ WORKDIR /app
5
+
6
+ # Install system dependencies
7
+ RUN apt-get update && apt-get install -y \
8
+ build-essential \
9
+ libopenblas-dev \
10
+ liblapack-dev \
11
+ gfortran \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ # Copy requirements
15
+ COPY requirements.txt .
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Copy application
19
+ COPY src/ ./src/
20
+
21
+ # Health check
22
+ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
23
+ CMD python -c "import requests; requests.get('http://localhost:8080/health')"
24
+
25
+ # Run application
26
+ CMD ["python", "-m", "src.main"]