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.
1 parent d8af0fd commit a689a2eCopy full SHA for a689a2e
Dockerfile
@@ -0,0 +1,18 @@
1
+# Base Python image
2
+FROM python:3.11-slim
3
+
4
+# Environment variables to reduce noise and improve performance
5
+ENV PYTHONDONTWRITEBYTECODE=1 \
6
+ PYTHONUNBUFFERED=1 \
7
+ PIP_NO_CACHE_DIR=1 \
8
+ PIP_DISABLE_PIP_VERSION_CHECK=1
9
10
+# Set working directory
11
+WORKDIR /app
12
13
+# Copy only the requirements file to install dependencies
14
+COPY requirements.txt .
15
16
+# Upgrade pip and install Python packages
17
+RUN pip install --upgrade pip \
18
+ && pip install -r requirements.txt
0 commit comments