This commit is contained in:
Lea 2023-09-26 20:48:15 +02:00
parent 11c395ae04
commit dc39c513e5
Signed by: Lea
GPG key ID: 1BAFFE8347019C42
2 changed files with 5 additions and 5 deletions

View file

@ -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", "."]

View file

@ -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"]