Spaces:
Running
Running
Prepare Dockerfile for deployment
Browse files- Dockerfile +11 -2
Dockerfile
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
|
|
| 1 |
FROM python:3.10
|
| 2 |
|
|
|
|
| 3 |
WORKDIR /app
|
|
|
|
|
|
|
| 4 |
COPY . .
|
| 5 |
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
-
|
|
|
|
|
|
| 1 |
+
# Use Python 3.10 base image
|
| 2 |
FROM python:3.10
|
| 3 |
|
| 4 |
+
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Copy all project files
|
| 8 |
COPY . .
|
| 9 |
|
| 10 |
+
# Install dependencies
|
| 11 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
+
|
| 13 |
+
# Expose Flask port
|
| 14 |
+
EXPOSE 8000
|
| 15 |
|
| 16 |
+
# Run the server
|
| 17 |
+
CMD ["python", "server.py"]
|