| FROM node:20-alpine | |
| WORKDIR /app | |
| RUN apk add --no-cache git bash | |
| RUN git clone https://github.com/SillyTavern/SillyTavern.git . && rm -rf .git | |
| RUN npm install --production | |
| COPY start.sh /start.sh | |
| RUN chmod +x /start.sh | |
| EXPOSE 7860 | |
| ENV NODE_OPTIONS="--max-old-space-size=512" | |
| CMD ["/start.sh"] |