File size: 439 Bytes
f1a1961 104078b f1a1961 104078b f1a1961 b23936a f1a1961 b23936a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | FROM python:3.10-slim
WORKDIR /app
# Copy requirement files first
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy source code
COPY server/ ./server/
COPY scripts/ ./scripts/
COPY inference.py .
COPY openenv.yaml .
COPY README.md .
COPY DOCUMENTATION.md .
# Expose the API port (Hugging Face default)
EXPOSE 7860
# Start server
CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]
|