File size: 404 Bytes
943453b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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"]