-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 768 Bytes
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 768 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 AS build
WORKDIR /app
# Copy package files first for better layer caching
COPY package.json package-lock.json tsconfig.base.json ./
COPY packages/build-tools/package.json ./packages/build-tools/
COPY packages/shared/package.json ./packages/shared/
COPY packages/server/package.json ./packages/server/
COPY packages/ui/package.json ./packages/ui/
# Install dependencies (cached unless package files change)
RUN npm ci
# Copy source files
COPY packages ./packages
# Build
RUN npm run build
FROM gcr.io/distroless/nodejs24-debian12
WORKDIR /app
ENV NODE_ENV=production
COPY --from=build /app/packages/server/dist ./packages/server/dist
COPY --from=build /app/packages/ui/dist ./packages/ui/dist
EXPOSE 8080
CMD ["packages/server/dist/main.js"]