-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.github-app
More file actions
28 lines (19 loc) · 854 Bytes
/
Copy pathDockerfile.github-app
File metadata and controls
28 lines (19 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM node:24-alpine@sha256:8e2c930fda481a6ec141fe5a88e8c249c69f8102fe98af505f38c081649ea749 # 24-alpine as of 2026-05-01
WORKDIR /app
# Install pnpm
RUN corepack enable && corepack prepare pnpm@10.33.0 --activate
# Copy workspace manifests for dependency installation
COPY package.json pnpm-workspace.yaml pnpm-lock.yaml ./
COPY packages/github-app/package.json ./packages/github-app/
COPY packages/core/package.json ./packages/core/
# Install production dependencies only
RUN pnpm install --frozen-lockfile --prod
# Copy source and build artifacts
COPY packages/core/dist ./packages/core/dist
COPY packages/github-app/dist ./packages/github-app/dist
# Non-root user for security
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
USER appuser
EXPOSE 3001
ENV NODE_ENV=production
ENTRYPOINT ["node", "packages/github-app/dist/index.js"]