Spaces:
Build error
Build error
| FROM node:20 | |
| WORKDIR /app | |
| RUN chmod -R 777 /app | |
| RUN apt-get update && \ | |
| apt-get install -y ffmpeg imagemagick git && \ | |
| rm -rf /var/lib/apt/lists/* | |
| RUN --mount=type=secret,id=GITHUB_REPO,required=true \ | |
| git clone $(cat /run/secrets/GITHUB_REPO) mybot | |
| WORKDIR /app/mybot | |
| RUN chmod -R 777 /app/mybot | |
| COPY package*.json ./ | |
| RUN npm install | |
| CMD ["node", "src/server.js"] | |