Spaces:
Runtime error
Runtime error
ademarteau commited on
Commit ·
b2065cc
1
Parent(s): 0209151
fix: use minimal requirements-server.txt in Docker to avoid downloading torch/ML deps
Browse files- Dockerfile +2 -2
- requirements-server.txt +6 -0
Dockerfile
CHANGED
|
@@ -12,8 +12,8 @@ WORKDIR /app
|
|
| 12 |
|
| 13 |
RUN apt-get update && apt-get install -y build-essential git && rm -rf /var/lib/apt/lists/*
|
| 14 |
|
| 15 |
-
COPY requirements.txt .
|
| 16 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 17 |
|
| 18 |
COPY config.py demand_calculator.py demand_environment.py \
|
| 19 |
inventory_manager.py order_processor.py performance_tracker.py \
|
|
|
|
| 12 |
|
| 13 |
RUN apt-get update && apt-get install -y build-essential git && rm -rf /var/lib/apt/lists/*
|
| 14 |
|
| 15 |
+
COPY requirements-server.txt .
|
| 16 |
+
RUN pip install --no-cache-dir -r requirements-server.txt
|
| 17 |
|
| 18 |
COPY config.py demand_calculator.py demand_environment.py \
|
| 19 |
inventory_manager.py order_processor.py performance_tracker.py \
|
requirements-server.txt
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fastapi==0.135.1
|
| 2 |
+
uvicorn==0.41.0
|
| 3 |
+
pydantic==2.12.5
|
| 4 |
+
numpy==2.4.2
|
| 5 |
+
ciw==3.2.7
|
| 6 |
+
aiofiles==24.1.0
|