This commit is contained in:
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user