Files
LangBot/Dockerfile
RockChinQ a3bf522248 fix: update build pipelines for Vite migration (out → dist)
- Dockerfile: npm run build → npx vite build, web/out → web/dist
- pyproject.toml: package-data web/out/** → web/dist/**
- paths.py: support both web/dist (Vite) and web/out (legacy) with fallback
2026-04-03 11:31:21 +08:00

23 lines
376 B
Docker

FROM node:22-alpine AS node
WORKDIR /app
COPY web ./web
RUN cd web && npm install && npx vite build
FROM python:3.12.7-slim
WORKDIR /app
COPY . .
COPY --from=node /app/web/dist ./web/dist
RUN apt update \
&& apt install gcc -y \
&& python -m pip install --no-cache-dir uv \
&& uv sync \
&& touch /.dockerenv
CMD [ "uv", "run", "--no-sync", "main.py" ]