Spaces:
Sleeping
Sleeping
oscarwang2
commited on
Commit
•
c1a9e39
1
Parent(s):
76bdca9
Create Dockerfile
Browse files- Dockerfile +15 -0
Dockerfile
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the latest Python version
|
2 |
+
FROM python:3.12-slim
|
3 |
+
|
4 |
+
# Set the working directory
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Copy the requirements file and install dependencies
|
8 |
+
COPY requirements.txt .
|
9 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
10 |
+
|
11 |
+
# Copy the rest of the application code
|
12 |
+
COPY . .
|
13 |
+
|
14 |
+
# Command to run the application
|
15 |
+
CMD ["python", "app.py"]
|