FROM node:20-slim RUN apt-get update && \ apt-get install -y git ffmpeg ca-certificates && \ rm -rf /var/lib/apt/lists/* WORKDIR /app RUN rm -rf /app/* || true ARG CACHEBUST=1 RUN --mount=type=secret,id=GH_TOKEN \ git clone --depth=1 https://$(cat /run/secrets/GH_TOKEN)@github.com/IMaduwike/nt-anime-api.git . && \ rm -rf .git RUN npm install EXPOSE 7860 CMD ["node", "index.js"]