Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
-
# Use Python 3.
|
| 2 |
-
FROM python:3.
|
| 3 |
|
| 4 |
# Set the working directory to /app
|
| 5 |
WORKDIR /app
|
|
@@ -16,7 +16,7 @@ COPY requirements.txt .
|
|
| 16 |
# --no-cache-dir keeps the image size smaller
|
| 17 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 18 |
|
| 19 |
-
# Copy all your code (app_1.py, src/, templates/,
|
| 20 |
COPY . .
|
| 21 |
|
| 22 |
# Create writable directories for the database and file uploads
|
|
|
|
| 1 |
+
# Use Python 3.11 (to match your local environment)
|
| 2 |
+
FROM python:3.11-slim
|
| 3 |
|
| 4 |
# Set the working directory to /app
|
| 5 |
WORKDIR /app
|
|
|
|
| 16 |
# --no-cache-dir keeps the image size smaller
|
| 17 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 18 |
|
| 19 |
+
# Copy all your code (app_1.py, src/, templates/, etc.) into the container
|
| 20 |
COPY . .
|
| 21 |
|
| 22 |
# Create writable directories for the database and file uploads
|