Spaces:
Sleeping
Sleeping
Commit
·
8289f5b
1
Parent(s):
2209f1e
Create Dockerfile
Browse files- Dockerfile +21 -0
Dockerfile
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Dockerfile
|
2 |
+
# Use the official Python image as the base image
|
3 |
+
FROM python:3.9
|
4 |
+
|
5 |
+
# Set the working directory
|
6 |
+
WORKDIR /app
|
7 |
+
|
8 |
+
# Copy the requirements file to the working directory
|
9 |
+
COPY requirements.txt .
|
10 |
+
|
11 |
+
# Install the dependencies
|
12 |
+
RUN pip install -r requirements.txt
|
13 |
+
|
14 |
+
# Copy the rest of the files to the working directory
|
15 |
+
COPY . .
|
16 |
+
|
17 |
+
# Expose port 5000
|
18 |
+
EXPOSE 7860
|
19 |
+
|
20 |
+
# Run the start.sh script when the container starts
|
21 |
+
CMD ["sh", "start.sh"]
|