24 lines
390 B
Text
24 lines
390 B
Text
|
FROM node:23 AS frontend-builder
|
||
|
|
||
|
WORKDIR /app/frontend
|
||
|
|
||
|
COPY frontend/package.json frontend/package-lock.json ./
|
||
|
RUN npm install
|
||
|
|
||
|
COPY frontend ./
|
||
|
RUN npm run build
|
||
|
|
||
|
FROM python:3.12
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY requirements.txt .
|
||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||
|
|
||
|
COPY . .
|
||
|
|
||
|
COPY --from=frontend-builder /app/frontend/dist /app/frontend/dist
|
||
|
|
||
|
EXPOSE 5000
|
||
|
|
||
|
CMD ["python", "run.py"]
|