Stream-UI/Dockerfile
2023-10-08 13:12:06 +02:00

21 lines
339 B
Docker

# 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"]