Michael Rabinovich commited on
Commit
f26021f
·
1 Parent(s): b5ad973

Dockerfile: copy all Python modules, not just app.py

Browse files

Previous COPY hardcoded app.py only, which broke the moment app.py
imported sibling leaderboard.py: the new module never made it into the
image and the runtime hit ModuleNotFoundError. Switching to *.py picks
up every Python file in AI4Engineering/ (currently app.py +
leaderboard.py; submit.py lands next), so future module additions
don't need a Dockerfile bump.

Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -55,7 +55,7 @@ RUN useradd -m -u 1000 user \
55
  && chown -R user:user /home/user/app
56
  USER user
57
  WORKDIR /home/user/app
58
- COPY --chown=user:user app.py results.jsonl ./
59
 
60
  EXPOSE 7860
61
  CMD ["python", "app.py"]
 
55
  && chown -R user:user /home/user/app
56
  USER user
57
  WORKDIR /home/user/app
58
+ COPY --chown=user:user *.py results.jsonl ./
59
 
60
  EXPOSE 7860
61
  CMD ["python", "app.py"]