Some checks are pending
CI / ruff (push) Waiting to run
CI / mypy (push) Waiting to run
CI / pytest (push) Waiting to run
CI / package (push) Waiting to run
CI / Install smoke (${{ matrix.label }}) (linux, ubuntu-latest) (push) Blocked by required conditions
CI / Install smoke (${{ matrix.label }}) (macos-arm64, macos-14) (push) Blocked by required conditions
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"]
|