File size: 527 Bytes
9f02f14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Nothing to see here...
# Just another container passing by...
# But hey, you found an Easter egg! 🥚

FROM oven/bun:1.2.4-debian

RUN apt-get update -qq && apt-get install -qq -y git ffmpeg aria2

ADD https://httpbin.org/uuid v.json

RUN --mount=type=secret,id=GIT_REPO,mode=0444,required=true \
    git clone $(cat /run/secrets/GIT_REPO) /usr/src/app

WORKDIR /usr/src/app
RUN chmod -R 777 /usr/src/app

ENV NODE_ENV=production
RUN bun install --production --no-save
RUN bun run build

ENTRYPOINT [ "bun", "run", "start" ]