Spaces:
Sleeping
Sleeping
hoshoo21
commited on
Commit
·
845e23e
1
Parent(s):
7a837d4
changing docker file
Browse files- DockerFile +16 -0
DockerFile
CHANGED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
From Python 3.12.7
|
2 |
+
|
3 |
+
# Step 2: Set working directory in the container
|
4 |
+
WORKDIR /app
|
5 |
+
|
6 |
+
# Step 3: Copy your app files into the container
|
7 |
+
COPY . /app
|
8 |
+
|
9 |
+
# Step 4: Install dependencies
|
10 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
11 |
+
|
12 |
+
# Step 5: Expose a port (optional, but useful)
|
13 |
+
EXPOSE 6000
|
14 |
+
|
15 |
+
# Step 6: Command to run your app
|
16 |
+
CMD ["python", "app.py"]
|