FROM node:19.1.0-alpine3.16 ARG ROOT=/RisuAI ARG VERSION=v124.1.0 WORKDIR ${ROOT} RUN apk add --no-cache git && \ git clone --depth 1 --branch ${VERSION} https://github.com/kwaroran/RisuAI.git . && \ npm install && \ npm run build && \ npm prune --production && \ rm -rf .git && \ mkdir -p /RisuAI/save && \ chown -R node:node /RisuAI USER node ENTRYPOINT [ "/bin/sh", "-c", "npm run runserver" ]