FROM node:19-alpine

RUN apk add git
RUN git clone https://gitea.elara.ws/Elara6331/lure-web
RUN cd lure-web && \
    npm i && \
    LURE_WEB_API_URL='https://api.lure.elara.ws' npm run build

WORKDIR /lure-web
ENTRYPOINT node build