Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@ FROM ghcr.io/astral-sh/uv:python3.13-trixie-slim
WORKDIR /app
COPY . /app/

RUN uv sync --frozen --extra agent
RUN uv sync --frozen --no-dev --extra agent

ENV SERVER_PORT=8000
ENV SERVER_HOST='0.0.0.0'
# Emit JSON Lines logs for ELK ingestion (logging is configured in-app, see logging.py)
ENV LOG_JSON='true'
ENV PYTHONUNBUFFERED='1'
ENV WORKERS=6
ENV PATH="/app/.venv/bin:$PATH"

# # For proper resolution in prod at https://matchmaker.eosc-data-commons.eu/api/search/docs
# ENV ROOT_PATH=/api/search

EXPOSE 8000
ENTRYPOINT ["sh", "-c", "uv run uvicorn src.data_commons_search.main:app --host $SERVER_HOST --port $SERVER_PORT --workers $WORKERS"]
ENTRYPOINT ["sh", "-c", "uvicorn src.data_commons_search.main:app --host $SERVER_HOST --port $SERVER_PORT --workers $WORKERS"]
Loading