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
|
WORKDIR /build/app
|
||||||
COPY package.json /build/app/
|
COPY package.json /build/app/
|
||||||
|
@ -7,7 +7,7 @@ RUN corepack enable
|
||||||
RUN corepack prepare pnpm@latest --activate
|
RUN corepack prepare pnpm@latest --activate
|
||||||
RUN pnpm install
|
RUN pnpm install
|
||||||
|
|
||||||
FROM node:18 as run
|
FROM node:19 as run
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /build/app/ /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
|
WORKDIR /build/app
|
||||||
COPY package.json tsconfig.json /build/app/
|
COPY package.json tsconfig.json /build/app/
|
||||||
|
@ -8,7 +8,7 @@ RUN corepack prepare pnpm@latest --activate
|
||||||
RUN pnpm install
|
RUN pnpm install
|
||||||
RUN pnpm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
FROM node:18 as run
|
FROM node:19 as run
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /build/app/ /app/
|
COPY --from=build /build/app/ /app/
|
||||||
CMD ["node", "dist"]
|
CMD ["node", "dist"]
|
||||||
|
|
Loading…
Reference in a new issue