mirror of
https://github.com/Xe138/AI-Trader.git
synced 2026-04-10 04:37:24 -04:00
fix: separate data scripts from volume mount directory
Move get_daily_price.py and merge_jsonl.py to /app/scripts to prevent volume mount from overlaying the scripts. Scripts run from /app/data context to output correctly. Fixes container startup error where scripts were not found after ./data volume mount replaced container's /app/data.
This commit is contained in:
@@ -15,6 +15,12 @@ WORKDIR /app
|
||||
# Copy application code
|
||||
COPY . .
|
||||
|
||||
# Copy data scripts to separate directory (volume mount won't overlay these)
|
||||
RUN mkdir -p /app/scripts && \
|
||||
cp data/get_daily_price.py /app/scripts/ && \
|
||||
cp data/get_interdaily_price.py /app/scripts/ && \
|
||||
cp data/merge_jsonl.py /app/scripts/
|
||||
|
||||
# Create necessary directories
|
||||
RUN mkdir -p data logs data/agent_data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user