Preperly functional Docker instance created and working

This commit is contained in:
mwisnowski 2025-08-21 10:28:10 -07:00
parent ada2403c40
commit 661bf236d9
11 changed files with 189 additions and 4900 deletions

View file

@ -25,18 +25,22 @@ COPY csv_files/ ./csv_files/
COPY mypy.ini .
# Create necessary directories as mount points
RUN mkdir -p deck_files logs
RUN mkdir -p deck_files logs csv_files
# Create volumes for persistent data
VOLUME ["/app/deck_files", "/app/logs", "/app/csv_files"]
# Set the working directory to code for proper imports
WORKDIR /app/code
# Create symbolic links so the app can find the data directories
RUN ln -sf /app/deck_files ./deck_files && \
# Create symbolic links BEFORE changing working directory
RUN cd /app/code && \
ln -sf /app/deck_files ./deck_files && \
ln -sf /app/logs ./logs && \
ln -sf /app/csv_files ./csv_files
# Verify symbolic links were created
RUN cd /app/code && ls -la deck_files logs csv_files
# Set the working directory to code for proper imports
WORKDIR /app/code
# Run the application
CMD ["python", "main.py"]