17 lines
409 B
Docker
17 lines
409 B
Docker
FROM node:20-alpine AS frontend-builder
|
|
WORKDIR /build
|
|
COPY webui/package*.json ./
|
|
RUN npm ci
|
|
COPY webui/ .
|
|
RUN npm run build
|
|
|
|
FROM python:3.12-slim
|
|
WORKDIR /app
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
COPY . .
|
|
COPY --from=frontend-builder /build/dist /app/webui/dist
|
|
RUN mkdir -p /app/logs
|
|
EXPOSE 8020
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8020"]
|