diff --git a/Dockerfile b/Dockerfile index f3cc3b1..e7d70a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,15 @@ FROM node:16-alpine as base RUN apk add --no-cache libc6-compat WORKDIR /app -RUN npm i --location=global pnpm@7 COPY pnpm-lock.yaml package.json ./ -RUN pnpm i --frozen-lockfile +RUN npm i --location=global pnpm@7 &&\ + pnpm i -FROM base as release +FROM node:16-alpine as release WORKDIR /app COPY . . COPY --from=base /app ./ RUN pnpm build &&\ - pnpm prune --prod --config.ignore-scripts=true + pnpm prune --prod EXPOSE 80 CMD pnpm serve -p 80 \ No newline at end of file