m
This commit is contained in:
parent
11c395ae04
commit
dc39c513e5
|
@ -1,4 +1,4 @@
|
|||
FROM node:18 as build
|
||||
FROM node:19 as build
|
||||
|
||||
WORKDIR /build/app
|
||||
COPY package.json /build/app/
|
||||
|
@ -7,7 +7,7 @@ RUN corepack enable
|
|||
RUN corepack prepare pnpm@latest --activate
|
||||
RUN pnpm install
|
||||
|
||||
FROM node:18 as run
|
||||
FROM node:19 as run
|
||||
WORKDIR /app
|
||||
COPY --from=build /build/app/ /app/
|
||||
CMD ["node", "dist"]
|
||||
CMD ["node", "."]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM node:18 as build
|
||||
FROM node:19 as build
|
||||
|
||||
WORKDIR /build/app
|
||||
COPY package.json tsconfig.json /build/app/
|
||||
|
@ -8,7 +8,7 @@ RUN corepack prepare pnpm@latest --activate
|
|||
RUN pnpm install
|
||||
RUN pnpm run build
|
||||
|
||||
FROM node:18 as run
|
||||
FROM node:19 as run
|
||||
WORKDIR /app
|
||||
COPY --from=build /build/app/ /app/
|
||||
CMD ["node", "dist"]
|
||||
|
|
Loading…
Reference in a new issue