21 lines
498 B
Docker
21 lines
498 B
Docker
FROM node:20-slim AS frontend-build
|
|
WORKDIR /app/frontend
|
|
COPY frontend/package.json frontend/package-lock.json* ./
|
|
RUN npm install
|
|
COPY frontend/ ./
|
|
RUN npm run build
|
|
|
|
FROM python:3.12-slim
|
|
WORKDIR /app
|
|
|
|
COPY backend/requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY backend/ ./backend/
|
|
COPY config.yaml* ./
|
|
COPY --from=frontend-build /app/frontend/dist ./frontend/dist
|
|
|
|
WORKDIR /app/backend
|
|
EXPOSE 8080
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]
|