porridger/Dockerfile
2023-05-15 11:16:22 +03:00

15 lines
366 B
Docker

FROM node:18-alpine as builder
WORKDIR /src
COPY ./front/package.json front/package-lock.json .
RUN npm ci
COPY front .
RUN npm run build
FROM python:3-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY ./app ./app
COPY --from=builder /src/dist ./front/dist
CMD uvicorn app.main:app --host 0.0.0.0 --port 80