Deploy ready

This commit is contained in:
2023-05-15 11:16:22 +03:00
parent 619aead639
commit 8626e92c9c
5 changed files with 47 additions and 2 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
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