NautilusAI / Dockerfile
gionuibk's picture
Upload Dockerfile with huggingface_hub
86b8d33 verified
FROM python:3.12-slim
WORKDIR /app
ENV PYTHONUNBUFFERED=1
# Install system dependencies if any (none strictly needed for minimal test, but good practice)
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Install system dependencies (Minimal for binary install)
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Install NautilusTrader Nightly from Official Nautech Systems Repository
# Use --extra-index-url so dependencies (pandas, click, etc.) are fetched from PyPI
RUN pip install --no-cache-dir nautilus_trader --pre --extra-index-url https://packages.nautechsystems.io/simple
# Copy verification script
COPY verify_install.py .
# Copy application code
COPY config.py .
COPY run_live.py .
COPY model_loader.py .
COPY adapters/ adapters/
COPY strategies/ strategies/
COPY models/ models/
# Run the verification script (Optional: You can remove this later)
# RUN python verify_install.py
# Run the Live Trading Node
CMD ["python", "run_live.py"]