Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +1 -9
Dockerfile
CHANGED
|
@@ -1,21 +1,13 @@
|
|
| 1 |
-
# Use the official Python base image
|
| 2 |
FROM python:3.11-slim
|
| 3 |
|
| 4 |
-
# Set environment variables
|
| 5 |
-
ENV PYTHONDONTWRITEBYTECODE=1
|
| 6 |
-
ENV PYTHONUNBUFFERED=1
|
| 7 |
-
|
| 8 |
-
# Set working directory inside container
|
| 9 |
WORKDIR /app
|
| 10 |
|
| 11 |
-
# Copy requirements and install dependencies
|
| 12 |
COPY requirements.txt .
|
| 13 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 14 |
|
| 15 |
-
# Copy the rest of the app
|
| 16 |
COPY . .
|
| 17 |
|
| 18 |
-
# Expose the port
|
| 19 |
EXPOSE 8080
|
| 20 |
|
| 21 |
# Run the app with Gunicorn
|
|
|
|
|
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
| 5 |
COPY requirements.txt .
|
| 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
|
|
|
|
| 8 |
COPY . .
|
| 9 |
|
| 10 |
+
# Expose the port your app runs on
|
| 11 |
EXPOSE 8080
|
| 12 |
|
| 13 |
# Run the app with Gunicorn
|