Spaces:
Sleeping
Sleeping
# 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" ] |