| 1 | FROM node:18 as frontend |
| 2 | WORKDIR /web/frontend |
| 3 | COPY ./frontend/package.json . |
| 4 | RUN npm install |
| 5 | COPY . /web |
| 6 | RUN npm run build |
| 7 | |
| 8 | FROM python:3 |
| 9 | WORKDIR /web |
| 10 | COPY ./rango/requirements.txt . |
| 11 | RUN pip install -r requirements.txt |
| 12 | COPY ./rango . |
| 13 | COPY --from=frontend /web/rango/rango/static /web/assets |
| 14 | COPY --from=frontend /web/rango/rango/templates /web/templates |
| 15 | |
| 16 | CMD ["/bin/bash", "entrypoint.sh"] |