Spaces:
Runtime error
Runtime error
go2sujeet
commited on
Commit
·
4f36482
1
Parent(s):
8ddbd95
added docker file
Browse files- Dockerfile +21 -0
Dockerfile
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.12.1
|
2 |
+
|
3 |
+
# Set the working directory
|
4 |
+
WORKDIR /code
|
5 |
+
|
6 |
+
# Copy the requirements file
|
7 |
+
COPY requirements.txt .
|
8 |
+
|
9 |
+
# Install the dependencies
|
10 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
11 |
+
|
12 |
+
# Copy the source code and data
|
13 |
+
COPY src/ src/
|
14 |
+
COPY data/ data/
|
15 |
+
|
16 |
+
#Expose the port
|
17 |
+
# EXPOSE 7860
|
18 |
+
#
|
19 |
+
|
20 |
+
# Set the entry point command
|
21 |
+
CMD ["python", "src/main.py"]
|