axiom-backend / Dockerfile
ritesh1918's picture
Deploy AxiomAI backend (using HF Inference API)
17ee968
raw
history blame contribute delete
486 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy backend code only (no .env file - using HF secrets)
COPY backend/ ./backend/
# HuggingFace Spaces automatically provides environment variables
# from the Secrets section in Space settings
# Expose port 7860 (required by HuggingFace Spaces)
EXPOSE 7860
# Run the app
CMD ["uvicorn", "backend.app:app", "--host", "0.0.0.0", "--port", "7860"]