Mike0021 commited on
Commit
107df46
·
verified ·
1 Parent(s): c27ec65

Add Docker startup diagnostics

Browse files
Files changed (1) hide show
  1. 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 ["python", "app.py"]
 
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"]