Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
|
@@ -1,8 +1,9 @@
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
WORKDIR /app
|
| 3 |
-
|
| 4 |
-
#
|
| 5 |
RUN pip install --upgrade pip && \
|
| 6 |
-
pip install --no-cache-dir --index-url https://pypi.org/simple/
|
| 7 |
-
COPY
|
| 8 |
CMD ["python", "file.py"]
|
|
|
|
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
WORKDIR /app
|
| 3 |
+
# Upgrade pip and then install packages directly, specifying the index URL.
|
| 4 |
+
# This bypasses any potential issues with reading/parsing the requirements.txt file.
|
| 5 |
RUN pip install --upgrade pip && \
|
| 6 |
+
pip install --no-cache-dir --index-url https://pypi.org/simple/ fasthtml monsterui
|
| 7 |
+
COPY . .
|
| 8 |
CMD ["python", "file.py"]
|
| 9 |
+
|