Spaces:
Runtime error
Runtime error
uripper
commited on
Commit
·
200fd7d
1
Parent(s):
ccbd581
- Dockerfile +6 -4
Dockerfile
CHANGED
@@ -11,7 +11,11 @@ COPY . /app
|
|
11 |
# Install any needed packages specified in requirements.txt
|
12 |
RUN pip install --no-cache-dir -r /app/requirements.txt
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
15 |
|
16 |
# Make port 7860 available to the world outside this container
|
17 |
EXPOSE 7860
|
@@ -19,9 +23,7 @@ EXPOSE 7860
|
|
19 |
# Define environment variable
|
20 |
ENV NAME FlaskApp
|
21 |
|
22 |
-
|
23 |
-
RUN ls -la /app
|
24 |
-
RUN ls -la /
|
25 |
|
26 |
# Run app.py when the container launches
|
27 |
CMD ["python", "app/app.py"]
|
|
|
11 |
# Install any needed packages specified in requirements.txt
|
12 |
RUN pip install --no-cache-dir -r /app/requirements.txt
|
13 |
|
14 |
+
# Debugging: Print the contents of the /app directory
|
15 |
+
RUN ls -la /app
|
16 |
+
RUN ls -la /
|
17 |
+
|
18 |
+
RUN python /app/app/download_model.py
|
19 |
|
20 |
# Make port 7860 available to the world outside this container
|
21 |
EXPOSE 7860
|
|
|
23 |
# Define environment variable
|
24 |
ENV NAME FlaskApp
|
25 |
|
26 |
+
|
|
|
|
|
27 |
|
28 |
# Run app.py when the container launches
|
29 |
CMD ["python", "app/app.py"]
|