We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4942546 + 76a99a9 commit 6bfaa30Copy full SHA for 6bfaa30
Dockerfile.prod
@@ -32,9 +32,11 @@ ENV PYTHONUNBUFFERED=1
32
RUN apt-get update && apt-get install -y netcat && rm -rf /var/lib/apt/lists/*
33
34
# Install Python dependencies
35
-RUN pip install --upgrade pip
+RUN pip install --upgrade pip --no-cache-dir
36
COPY server/requirements.txt .
37
-RUN pip install -r requirements.txt
+# Install CPU-only torch to save space (avoids ~4GB of CUDA libs)
38
+RUN pip install torch --index-url https://download.pytorch.org/whl/cpu --no-cache-dir
39
+RUN pip install -r requirements.txt --no-cache-dir
40
41
# Copy backend application code
42
COPY server/ .
0 commit comments