This commit is contained in:
2023-10-08 13:12:06 +02:00
commit 3525853ccd
25 changed files with 2585 additions and 0 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
# build frontend
FROM node:20 as builder
WORKDIR /frontend
COPY frontend .
RUN npm ci && npm run build
# build final container
FROM python:3.12-alpine
WORKDIR /usr/src/app
COPY backend .
COPY --from=builder /frontend/dist frontend
RUN pip install -e "."
EXPOSE 80
ENTRYPOINT ["hypercorn", "backend:app"]
CMD ["--bind", "0.0.0.0:80"]