Spaces:
Sleeping
Sleeping
Commit
·
241829f
1
Parent(s):
121a86c
add debug command
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -16,7 +16,12 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
16 |
# Again, ensure the copied files are owned by 'user'
|
17 |
COPY --chown=user . /app
|
18 |
|
|
|
|
|
|
|
|
|
19 |
# Specify the command to run when the container starts
|
20 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
21 |
# Pass the secret variable to the application
|
|
|
22 |
RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true
|
|
|
16 |
# Again, ensure the copied files are owned by 'user'
|
17 |
COPY --chown=user . /app
|
18 |
|
19 |
+
|
20 |
+
# Add a debug command to check file location (remove this once verified)
|
21 |
+
RUN ls -l /app
|
22 |
+
|
23 |
# Specify the command to run when the container starts
|
24 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
25 |
# Pass the secret variable to the application
|
26 |
+
|
27 |
RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true
|