Spaces:
Runtime error
Runtime error
uripper
commited on
Commit
·
70cdff9
1
Parent(s):
4e99f17
what
Browse files- Dockerfile +12 -4
Dockerfile
CHANGED
@@ -4,14 +4,22 @@ FROM python:3.11
|
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
# Copy
|
8 |
-
COPY
|
|
|
9 |
|
10 |
# Install any needed packages specified in requirements.txt
|
11 |
-
RUN pip install --no-cache-dir -r
|
12 |
|
13 |
# Make port 7860 available to the world outside this container
|
14 |
EXPOSE 7860
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
# Run app.py when the container launches
|
17 |
-
CMD ["python", "
|
|
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /app
|
6 |
|
7 |
+
# Copy the current directory contents into the container at /app
|
8 |
+
COPY . /app
|
9 |
+
|
10 |
|
11 |
# Install any needed packages specified in requirements.txt
|
12 |
+
RUN pip install --no-cache-dir -r /app/requirements.txt
|
13 |
|
14 |
# Make port 7860 available to the world outside this container
|
15 |
EXPOSE 7860
|
16 |
|
17 |
+
# Define environment variable
|
18 |
+
ENV NAME FlaskApp
|
19 |
+
|
20 |
+
# Debugging: Print the contents of the /app directory
|
21 |
+
RUN ls -la /app
|
22 |
+
RUN ls -la /
|
23 |
+
|
24 |
# Run app.py when the container launches
|
25 |
+
CMD ["python", "app/app.py"]
|