Michael Rabinovich commited on
Commit ·
f26021f
1
Parent(s): b5ad973
Dockerfile: copy all Python modules, not just app.py
Browse filesPrevious 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.
54 unmodified lines5556575859606154 unmodified lines&& chown -R user:user /home/user/appUSER userWORKDIR /home/user/appCOPY --chown=user:user app.py results.jsonl ./EXPOSE 7860CMD ["python", "app.py"]54 unmodified lines5556575859606154 unmodified lines&& chown -R user:user /home/user/appUSER userWORKDIR /home/user/appCOPY --chown=user:user *.py results.jsonl ./EXPOSE 7860CMD ["python", "app.py"]
Dockerfile+1-1