| FROM node:20-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y ffmpeg git && rm -rf /var/lib/apt/lists/* | |
| RUN mkdir -p temp && chown -R node:node /app | |
| USER node | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["bash", "-c", "rm -rf source_code && git clone https://${GIT_TOKEN}@github.com/WelaLanka-Best/ADMIN.git source_code && cd source_code && npm install && node index.js"] | |