# VibeDNA Docker Image
# © 2026 VibeDNA powered by VibeCaaS.com a division of NeuralQuantum.ai LLC.

FROM python:3.11-slim

LABEL maintainer="NeuralQuantum.ai <contact@neuralquantum.ai>"
LABEL description="VibeDNA - Binary to DNA Encoding System"
LABEL version="1.0.0"

WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
    gcc \
    && rm -rf /var/lib/apt/lists/*

# Copy project files
COPY pyproject.toml ./
COPY vibedna/ ./vibedna/

# Install Python dependencies
RUN pip install --no-cache-dir -e .

# Expose API port
EXPOSE 8000

# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
    CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/')" || exit 1

# Run API server
CMD ["uvicorn", "vibedna.api.rest_server:app", "--host", "0.0.0.0", "--port", "8000"]

# © 2026 VibeDNA powered by VibeCaaS.com a division of NeuralQuantum.ai LLC. All rights reserved.
