mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-09-22 04:50:46 +02:00
chore(release): v2.2.2 – seed default config files on startup; preserve defaults in image; bump versions in compose; update changelog
This commit is contained in:
parent
1988f98c5b
commit
a0a12baa9b
7 changed files with 69 additions and 30 deletions
|
@ -24,11 +24,16 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||
# Copy application code
|
||||
COPY code/ ./code/
|
||||
COPY mypy.ini .
|
||||
|
||||
# Copy default configs in two locations:
|
||||
# 1) /app/config is the live path (may be overlaid by a volume)
|
||||
# 2) /app/.defaults/config is preserved in the image for first-run seeding when a volume is mounted
|
||||
COPY config/ ./config/
|
||||
COPY config/ /.defaults/config/
|
||||
RUN mkdir -p owned_cards
|
||||
|
||||
# Create necessary directories as mount points
|
||||
RUN mkdir -p deck_files logs csv_files config
|
||||
RUN mkdir -p deck_files logs csv_files config /.defaults
|
||||
|
||||
# Create volumes for persistent data
|
||||
VOLUME ["/app/deck_files", "/app/logs", "/app/csv_files", "/app/config", "/app/owned_cards"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue