mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-16 15:40:12 +01:00
feat: bake similarity cache into Docker images
- Copy card_files/ to /.defaults/card_files/ during build - Entrypoint checks for baked-in cache before downloading - Fallback to GitHub download if not present in image - Reduces startup time and bandwidth usage
This commit is contained in:
parent
0cf7598400
commit
fd240e2533
2 changed files with 18 additions and 4 deletions
|
|
@ -32,6 +32,12 @@ COPY config/ ./config/
|
|||
COPY config/ /.defaults/config/
|
||||
RUN mkdir -p owned_cards
|
||||
|
||||
# Copy similarity cache if available (pre-built during CI)
|
||||
# Store in /.defaults/card_files so it persists after volume mount
|
||||
RUN mkdir -p /.defaults/card_files
|
||||
# Copy entire card_files directory (will include cache if present, empty if not)
|
||||
COPY card_files/ /.defaults/card_files/
|
||||
|
||||
# Create necessary directories as mount points
|
||||
RUN mkdir -p deck_files logs csv_files card_files config /.defaults
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue