File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 1- FROM node:23.11-slim AS node_base
1+ FROM node:23.11-slim AS builder
22WORKDIR /app
3-
4- FROM node_base AS builder
53RUN npm install -g typescript shx
64
7- COPY package.json yarn.lock tsconfig.json ./
8- RUN --mount=type=cache,target=/usr/local/share/.cache/yarn yarn install --ignore-scripts --omit-dev
9-
105COPY . ./
11- RUN --mount=type=cache,target=/usr/local/share/.cache/yarn tsc && shx chmod +x dist/*.js
6+ RUN --mount=type=cache,target=/root/.npm npm install
127
13- FROM node_base
14- COPY package.json yarn.lock ./
15- COPY --from=builder /app/dist ./dist
16- ENV NODE_ENV=production
17- RUN --mount=type=cache,target=/usr/local/share/.cache/yarn yarn install --ignore-scripts --omit-dev
188ENTRYPOINT ["node" , "/app/dist/index.js" ]
You can’t perform that action at this time.
0 commit comments