| FROM node:lts-alpine3.19 | |
| RUN apk add git curl bash wget davfs2 fuse sudo | |
| WORKDIR /tavern | |
| RUN git clone https://github.com/SillyTavern/SillyTavern -b staging . | |
| RUN npm install --no-audit --no-fund --loglevel=error --no-progress --omit=dev && npm cache clean --force | |
| RUN chmod -R 777 /tavern | |
| COPY . . | |
| RUN rm -rf /tavern/data/* | |
| RUN chmod +x /tavern/entrypoint.sh /tavern/webdav-sync | |
| CMD ["/tavern/entrypoint.sh"] |