pilotwings/Dockerfile
Michel Roux 12a7ace84b
Some checks failed
pilotwings / python (push) Successful in 1m34s
pilotwings / node (push) Failing after 23s
pilotwings / docker (push) Has been skipped
feat: 👷 add auto build and lint ci system
2024-11-05 15:22:51 +01:00

20 lines
379 B
Docker

FROM node:20.18.0-slim as frontend
WORKDIR /app
COPY . .
RUN npm ci && npm run build
FROM python:3.13.0-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.0-slim
COPY --from=backend /app/dist /tmp/dist
RUN pip install /tmp/dist/*.whl && rm -rf /tmp/dist
CMD [ pilotwings ]