Spaces:
Paused
Paused
Create Dockerfile
Browse files- Dockerfile +16 -0
Dockerfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use a specific version for the base image
|
| 2 |
+
FROM python:3.11-slim
|
| 3 |
+
|
| 4 |
+
# Set a working directory in the container
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Install dependencies
|
| 8 |
+
RUN pip install requests fastapi uvicorn
|
| 9 |
+
# Copy application files to the container at /app
|
| 10 |
+
COPY . /app
|
| 11 |
+
|
| 12 |
+
# Expose the desired port
|
| 13 |
+
EXPOSE 8080
|
| 14 |
+
|
| 15 |
+
# Command to run the script
|
| 16 |
+
CMD ["python", "run.py"]
|