forked from falcondev-oss/github-actions-cache-server
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (16 loc) · 538 Bytes
/
Dockerfile
File metadata and controls
27 lines (16 loc) · 538 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
FROM node:22-alpine AS builder
WORKDIR /app
RUN npm install -g pnpm@latest-10
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
RUN --mount=type=cache,target=/root/.local/share/pnpm/store pnpm fetch --prod
COPY . .
RUN pnpm install --frozen-lockfile --prod --offline
ARG BUILD_HASH
ENV BUILD_HASH=${BUILD_HASH}
RUN pnpm run build
# --------------------------------------------
FROM node:22-alpine AS runner
ENV NITRO_CLUSTER_WORKERS=1
WORKDIR /app
COPY --from=builder /app/.output ./
CMD ["node", "/app/server/index.mjs"]