2024-11-06 07:52:12 +00:00
|
|
|
FROM node:20-slim AS frontend
|
2024-11-05 14:22:51 +00:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN npm ci && npm run build
|
|
|
|
|
2024-12-20 00:08:21 +00:00
|
|
|
FROM python:3.13.1-slim AS backend
|
2024-11-05 14:22:51 +00:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
COPY --from=frontend /app/backend/dist /app/backend/dist
|
|
|
|
RUN pip install poetry && poetry build
|
|
|
|
|
2024-12-20 00:08:21 +00:00
|
|
|
FROM python:3.13.1-slim
|
2024-11-05 14:22:51 +00:00
|
|
|
|
|
|
|
COPY --from=backend /app/dist /tmp/dist
|
|
|
|
RUN pip install /tmp/dist/*.whl && rm -rf /tmp/dist
|
|
|
|
|
2024-11-05 14:43:18 +00:00
|
|
|
CMD [ "pilotwings" ]
|