remove the depend docker command
All checks were successful
docker / docker (push) Successful in 1m39s
All checks were successful
docker / docker (push) Successful in 1m39s
Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
parent
9a16fa65c9
commit
e6ebf6ca78
10
Dockerfile
10
Dockerfile
@ -1,20 +1,12 @@
|
||||
FROM node:lts-alpine AS deps
|
||||
|
||||
WORKDIR /app
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
|
||||
RUN npm install -g pnpm
|
||||
RUN pnpm install
|
||||
|
||||
FROM node:lts-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
RUN npm install -g pnpm
|
||||
RUN pnpm install
|
||||
RUN pnpm build
|
||||
|
||||
FROM node:lts-alpine AS runner
|
||||
|
Loading…
x
Reference in New Issue
Block a user