Spaces:
Runtime error
Runtime error
Add Docker startup diagnostics
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -18,6 +18,7 @@ RUN pip install --no-cache-dir --upgrade pip \
|
|
| 18 |
&& pip install --no-cache-dir -r requirements.txt
|
| 19 |
|
| 20 |
COPY app.py .
|
|
|
|
| 21 |
|
| 22 |
EXPOSE 7860
|
| 23 |
-
CMD ["
|
|
|
|
| 18 |
&& pip install --no-cache-dir -r requirements.txt
|
| 19 |
|
| 20 |
COPY app.py .
|
| 21 |
+
RUN python -m py_compile app.py
|
| 22 |
|
| 23 |
EXPOSE 7860
|
| 24 |
+
CMD ["/bin/sh", "-c", "echo codex-traces docker cmd start >&2; python -u app.py"]
|