CI / ruff (push) Has been cancelled
CI / mypy (push) Has been cancelled
CI / pytest (push) Has been cancelled
CI / package (push) Has been cancelled
CI / Install smoke (${{ matrix.label }}) (linux, ubuntu-latest) (push) Has been cancelled
CI / Install smoke (${{ matrix.label }}) (macos-arm64, macos-14) (push) Has been cancelled
15 lines
345 B
Docker
15 lines
345 B
Docker
# Single container: serves the static front-end AND the /api/search proxy.
|
|
# HF Spaces (sdk: docker) routes traffic to $PORT, default 7860.
|
|
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 7860
|
|
|
|
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]
|