Fix uvicorn PATH in Docker - use poetry venv bin directory
Some checks are pending
CI / Engine — lint / typecheck / test (push) Waiting to run
CI / API — lint / typecheck / test (push) Waiting to run
CI / Web — typecheck / lint / build (push) Waiting to run

This commit is contained in:
Manohar Gupta 2026-05-13 21:47:53 +05:30
parent 11579efb55
commit fe0689d827
2 changed files with 4 additions and 2 deletions

View file

@ -33,7 +33,7 @@ services:
build: build:
context: . context: .
dockerfile: packages/api/Dockerfile dockerfile: packages/api/Dockerfile
command: arq remodel_api.workers.main.WorkerSettings command: python -m arq remodel_api.workers.main.WorkerSettings
restart: unless-stopped restart: unless-stopped
environment: environment:
- DATABASE_URL=sqlite:///./remodel.db - DATABASE_URL=sqlite:///./remodel.db

View file

@ -12,7 +12,9 @@ COPY packages /app/packages
WORKDIR /app/packages/api WORKDIR /app/packages/api
RUN poetry install --no-interaction RUN poetry install --no-interaction
# Set Python path # Get poetry venv path and set PATH
ENV VENV_PATH=/root/.cache/pypoetry/virtualenvs/remodel-api-cufy8KWC-py3.12/bin
ENV PATH=$VENV_PATH:$PATH
ENV PYTHONPATH=/app/packages/engine/src:/app/packages/api/src ENV PYTHONPATH=/app/packages/engine/src:/app/packages/api/src
WORKDIR /app/packages/api WORKDIR /app/packages/api