We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88f650c commit 30f65eeCopy full SHA for 30f65ee
Dockerfile
@@ -1,18 +1,8 @@
1
-FROM node:23.11-slim AS node_base
+FROM node:23.11-slim AS builder
2
WORKDIR /app
3
-
4
-FROM node_base AS builder
5
RUN npm install -g typescript shx
6
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
10
COPY . ./
11
-RUN --mount=type=cache,target=/usr/local/share/.cache/yarn tsc && shx chmod +x dist/*.js
+RUN --mount=type=cache,target=/root/.npm npm install
12
13
-FROM node_base
14
-COPY package.json yarn.lock ./
15
-COPY --from=builder /app/dist ./dist
16
-ENV NODE_ENV=production
17
18
ENTRYPOINT ["node", "/app/dist/index.js"]
0 commit comments