migrate poetry -> uv
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-10 23:45:40 +02:00
parent 4d3644e437
commit 983c4f7177
8 changed files with 650 additions and 1121 deletions

View File

@@ -9,10 +9,10 @@ RUN npm run build
FROM python:3.12-slim
COPY --from=frontend /app/dist /app/dist
WORKDIR /app/server-python
RUN pip install poetry==1.8.2
COPY server-python/pyproject.toml server-python/poetry.lock ./
RUN poetry install
COPY --from=ghcr.io/astral-sh/uv:0.4.7 /uv /bin/uv
COPY server-python/pyproject.toml server-python/uv.lock ./
RUN uv sync --no-dev --frozen
COPY server-python/app.py .
ENV PRODUCTION="true"
CMD ["poetry", "run", "fastapi", "run", "app.py", "--port", "3000"]
CMD ["uv", "run", "fastapi", "run", "app.py", "--port", "3000"]