Spaces:
Running
Running
Create Dockerfile
Browse files- Dockerfile +14 -0
Dockerfile
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use a base image with Python 3.x
|
2 |
+
FROM python:3.10
|
3 |
+
|
4 |
+
# Install necessary packages
|
5 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
6 |
+
|
7 |
+
# Copy your project code to the container
|
8 |
+
COPY . /app
|
9 |
+
|
10 |
+
# Set the working directory to your project
|
11 |
+
WORKDIR /app
|
12 |
+
|
13 |
+
# Define the command to run your application
|
14 |
+
CMD ["python", "main.py"]
|