fix: remove all git rev thing i'll come back to that later
All checks were successful
Build and Deploy / typecheck (push) Successful in 31s
Build and Deploy / build (push) Successful in 31s
Build and Deploy / deploy (push) Successful in 2s

This commit is contained in:
2026-06-01 22:33:47 +02:00
parent 1c2d09cafc
commit 8420344519
4 changed files with 4 additions and 11 deletions

View File

@@ -1,9 +1,5 @@
FROM alpine AS git-sha
RUN apk add --no-cache git
COPY .git .git
RUN git rev-parse --short HEAD > /commit_sha
FROM node:22-alpine
WORKDIR /app
RUN corepack enable && corepack prepare pnpm@10.24.0 --activate
@@ -19,6 +15,4 @@ RUN pnpm --filter @lbf-bot/utils run build
RUN pnpm --filter @lbf-bot/database run build
RUN pnpm --filter @lbf/discord-bot run build
COPY --from=git-sha /commit_sha /commit_sha
CMD export COMMIT_SHA=$(cat /commit_sha) && exec node apps/discord-bot/dist/index.js
CMD ["node", "apps/discord-bot/dist/index.js"]