mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-16 15:40:12 +01:00
Fixed an issue with files uploaded to dockerhub, causing it to include some csv and text files that don't need to be there
This commit is contained in:
parent
712cc38ef6
commit
07605990a1
4 changed files with 220 additions and 1 deletions
|
|
@ -21,7 +21,6 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||
|
||||
# Copy application code
|
||||
COPY code/ ./code/
|
||||
COPY csv_files/ ./csv_files/
|
||||
COPY mypy.ini .
|
||||
|
||||
# Create necessary directories as mount points
|
||||
|
|
@ -31,6 +30,7 @@ RUN mkdir -p deck_files logs csv_files
|
|||
VOLUME ["/app/deck_files", "/app/logs", "/app/csv_files"]
|
||||
|
||||
# Create symbolic links BEFORE changing working directory
|
||||
# These will point to the mounted volumes
|
||||
RUN cd /app/code && \
|
||||
ln -sf /app/deck_files ./deck_files && \
|
||||
ln -sf /app/logs ./logs && \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue