File size: 319 Bytes
a5cac06
7ca2580
b9395ea
b61c182
7ca2580
 
d69c7f9
b9395ea
 
 
f8f6887
28095be
275b0b2
 
435054f
b9395ea
4fdc3a7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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"]