diff --git a/Dockerfile b/Dockerfile index af42ca6..8b9a360 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/entrypoint.sh b/entrypoint.sh index 7019671..9c80ea1 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,9 +5,10 @@ echo "🚀 Starting AI-Trader..." # Step 1: Data preparation echo "📊 Fetching and merging price data..." +# Run scripts from /app/scripts but output to /app/data cd /app/data -python get_daily_price.py -python merge_jsonl.py +python /app/scripts/get_daily_price.py +python /app/scripts/merge_jsonl.py cd /app # Step 2: Start MCP services in background