pilotwings/Dockerfile
Michel Roux ed6aadc55f
All checks were successful
pilotwings / python (push) Successful in 1m47s
pilotwings / node (push) Successful in 34s
pilotwings / docker (push) Successful in 1m46s
chore: ⬆️ update python
2024-12-22 10:15:39 +01:00

20 lines
376 B
Docker

FROM node:20-slim AS frontend
WORKDIR /app
COPY . .
RUN npm ci && npm run build
FROM python:3.13.1-slim AS backend
WORKDIR /app
COPY . .
COPY --from=frontend /app/backend/dist /app/backend/dist
RUN pip install poetry && poetry build
FROM python:3.13.1-slim
COPY --from=backend /app/dist /tmp/dist
RUN pip install /tmp/dist/*.whl && rm -rf /tmp/dist
CMD [ "pilotwings" ]