mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 06:10:57 +00:00
Merged the following branches: - feat-genx-trader-bot-bridge (ZOLO bridge, Docker updates) - feature/zolo-integration-update (ZOLO bridge improvements) - feature/add-web-request (Requests support) - fix-mql5-ask-bid-usage (Fix for MQL5) - update-documentation-and-setup-script (Docs update) - update-trading-bridge-zolo (Bridge IP update) - expert-mapsar-improvements (MAPSAR EA improvements) - remote-control-intelligence-tools-integration (Remote control guide) - feat/cli-documentation (CLI docs) - perf-optimize-validator (Validator script optimization) - jules-docker-run-verification (Verification doc update) Resolved conflicts in: - mt5/MQL5/Experts/SMC_TrendBreakout_MTF_EA.mq5 (Version 1.21, merged improvements) - scripts/ci_validate_repo.py (Kept optimized version) - render.yaml (Merged configs) - docker-compose.yml (Merged configs) - README.md & docs (Merged updates) Security fixes: - Removed hardcoded credentials from setup_github_secrets.ps1 and docs/GITHUB_CI_CD_SETUP.md.
58 lines
1.3 KiB
Text
58 lines
1.3 KiB
Text
# Development Dockerfile for MQL5 Trading Automation System
|
|
FROM python:3.11-slim
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Install system dependencies for development
|
|
RUN apt-get update && apt-get install -y \
|
|
git \
|
|
bash \
|
|
curl \
|
|
wget \
|
|
vim \
|
|
nano \
|
|
build-essential \
|
|
gcc \
|
|
g++ \
|
|
make \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install development tools
|
|
RUN pip install --upgrade pip setuptools wheel
|
|
|
|
# Copy requirements first (for better caching)
|
|
COPY requirements.txt* ./
|
|
COPY scripts/requirements_bot.txt* ./scripts/
|
|
|
|
# Install Python dependencies
|
|
RUN if [ -f requirements.txt ]; then pip install --no-cache-dir -r requirements.txt; fi
|
|
RUN if [ -f scripts/requirements_bot.txt ]; then pip install --no-cache-dir -r scripts/requirements_bot.txt; fi
|
|
|
|
# Install development dependencies
|
|
RUN pip install --no-cache-dir \
|
|
black \
|
|
pylint \
|
|
pytest \
|
|
ipython \
|
|
jupyter
|
|
|
|
# Copy application files
|
|
COPY . .
|
|
|
|
# Create necessary directories
|
|
RUN mkdir -p logs config mt5
|
|
|
|
# Make scripts executable
|
|
RUN chmod +x scripts/*.py scripts/*.sh 2>/dev/null || true
|
|
|
|
# Set Python path and environment
|
|
ENV PYTHONPATH=/app
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Expose ports
|
|
EXPOSE 8080 5000 3000
|
|
|
|
# Default command - keep container running for development
|
|
CMD ["tail", "-f", "/dev/null"]
|