pilotwings/Dockerfile

20 lines
376 B
Docker
Raw Normal View History

FROM node:23-slim AS frontend
WORKDIR /app
COPY . .
RUN npm ci && npm run build
2024-11-05 14:43:18 +00:00
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
2024-11-05 14:43:18 +00:00
CMD [ "pilotwings" ]