| FROM node:18-alpine | |
| RUN apk add --no-cache git bash curl | |
| WORKDIR /app | |
| ARG GIT_REPO | |
| RUN --mount=type=secret,id=GIT_TOKEN \ | |
| TOKEN=$(cat /run/secrets/GIT_TOKEN) && \ | |
| git clone https://${TOKEN}@github.com/${GIT_REPO}.git . && \ | |
| chmod -R 777 /app/music | |
| RUN npm install | |
| ENV PORT=3000 | |
| CMD ["node", "app.js"] | |