We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de8a636 commit 4d8c91fCopy full SHA for 4d8c91f
Dockerfile
@@ -1,17 +1,12 @@
1
-# Step 1: Use official Python image
2
FROM python:3.12-slim
3
4
-# Step 2: Set working directory inside container
5
WORKDIR /app
6
7
-# Step 3: Copy all project files into the container
8
COPY . .
9
10
-# Step 4: Install Python dependencies
11
-RUN pip install --no-cache-dir -r requirements.txt
+RUN pip install --no-cache-dir -r requirements.txt \
+ && pip install pytest
12
13
-# Step 5: Expose port Flask will run on
14
-EXPOSE 5000
+ENV PYTHONPATH=/app
15
16
-# Step 6: Run the Flask app
17
-CMD ["python", "app.py"]
+CMD ["python", "app.py"]
0 commit comments