Skip to content

Commit 65877a1

Browse files
committed
refactor(docker): improve Dockerfile formatting and update pnpm version
1 parent 850f79b commit 65877a1

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,32 @@
1+
# syntax=docker/dockerfile:1.7
2+
13
# ================ #
2-
# Base Stage #
4+
# Base Stage #
35
# ================ #
46

57
FROM node:24-alpine AS base
68

79
WORKDIR /usr/src/app
10+
ARG NODE_OPTIONS
811

912
ENV CI="true"
1013
ENV PNPM_HOME="/pnpm"
1114
ENV PATH="$PNPM_HOME:$PATH"
1215
ENV LOG_LEVEL=info
1316
ENV FORCE_COLOR=true
1417

15-
RUN apk add --no-cache dumb-init
16-
RUN corepack enable && corepack prepare pnpm@10.22.0 --activate
18+
RUN apk add --no-cache dumb-init g++ make python3
19+
RUN corepack enable && corepack prepare pnpm@10.33.0 --activate
1720

1821
COPY --chown=node:node pnpm-lock.yaml .
22+
COPY --chown=node:node pnpm-workspace.yaml .
1923
COPY --chown=node:node package.json .
2024
COPY --chown=node:node .npmrc .
2125

2226
ENTRYPOINT ["dumb-init", "--"]
2327

2428
# ================ #
25-
# Builder Stage #
29+
# Builder Stage #
2630
# ================ #
2731

2832
FROM base AS builder

0 commit comments

Comments
 (0)