#build web app FROM node:lts-alpine AS build-stage WORKDIR /app COPY /frontend ./ RUN npm install RUN npm run build #setup flask app FROM python:3.10-alpine AS production-stage WORKDIR /app COPY ./backend /app/backend #RUN mkdir /app/static RUN pip install --no-cache-dir -r backend/requirements.txt COPY --from=build-stage /app/dist /app/frontend/dist/ EXPOSE 8080 CMD ["gunicorn", "--bind", "0.0.0.0:8080", "--chdir", "backend", "app:app"]