| FROM node:20-alpine |
|
|
| WORKDIR /app |
|
|
| |
| RUN apk add --no-cache git fontconfig ttf-dejavu ttf-freefont font-noto |
|
|
| |
| RUN git clone https://github.com/OlinadWiz/dynrat.git . |
|
|
| |
| RUN npm ci |
| RUN npm run build |
|
|
| |
| RUN mkdir -p /app/.next/standalone/.next \ |
| && cp -r /app/.next/static /app/.next/standalone/.next/ \ |
| && if [ -d /app/public ]; then cp -r /app/public /app/.next/standalone/public; fi |
|
|
| |
| ENV NODE_ENV=production |
| ENV PORT=7860 |
|
|
| |
| RUN mkdir -p /app/data |
| VOLUME ["/app/data"] |
|
|
| EXPOSE 7860 |
| CMD ["node", ".next/standalone/server.js"] |