Files
airi/server/apps/auth/Dockerfile
T
RainbowBirdandautofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> 22b5249c64 refactor(server): split independent auth service (#2202)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-12 23:33:58 +08:00

23 lines
513 B
Docker

FROM node:24-alpine
WORKDIR /app
RUN addgroup -S airi && adduser -S airi -G airi
RUN corepack enable
COPY pnpm-lock.yaml pnpm-workspace.yaml package.json tsconfig.json ./
COPY patches/ ./patches/
COPY server/apps/auth server/apps/auth
COPY server/packages/auth-shared server/packages/auth-shared
RUN pnpm install --frozen-lockfile --ignore-scripts --filter @proj-airi/auth-server...
RUN pnpm -F @proj-airi/auth-server run build
EXPOSE 3000
USER airi
CMD ["pnpm", "-F", "@proj-airi/auth-server", "start"]