Aethero_github / Dockerfile
xvadur's picture
Migrated Aethero Orchestra to unified repo
2913244
# Dockerfile for AetheroOS Introspective System - Hugging Face Spaces
FROM python:3.9-slim
# Create user for security
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
# Set working directory
WORKDIR /app
# Copy requirements and install dependencies
COPY --chown=user ./Aethero_App/requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Copy application files
COPY --chown=user ./Aethero_App/ /app
# Expose port for Hugging Face Spaces
EXPOSE 7860
# Health check
HEALTHCHECK --interval=30s --timeout=30s --start-period=60s --retries=3 \
CMD python -c "import requests; requests.get('http://localhost:7860/health')" || exit 1
# Run the application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]