manus-backend / Dockerfile
OpenHands
Restore Dockerfile
0e543cb
Raw
History Blame Contribute Delete
793 Bytes
# Manus AI Agent OS Backend
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code - copy backend contents to /app directly
COPY backend/ ./backend/
# Expose port
EXPOSE 7860
# Environment variables
ENV PYTHONUNBUFFERED=1
ENV HOST=0.0.0.0
ENV PORT=7860
ENV PYTHONPATH=/app
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
CMD curl -f http://localhost:7860/ || exit 1
# Run with uvicorn - use module path that works with /app structure
CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "7860"]