fix: Dockerfile can not build.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
541c9e6e8f
commit
83440b09da
@ -3,12 +3,11 @@ RUN apk add --no-cache libc6-compat
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY pnpm-lock.yaml package.json ./
|
COPY pnpm-lock.yaml package.json ./
|
||||||
RUN npm i --location=global pnpm@7 &&\
|
RUN npm i --location=global pnpm@7 &&\
|
||||||
pnpm i &&\
|
pnpm i
|
||||||
pnpm build
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
FROM node:16-alpine as release
|
FROM node:16-alpine as release
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
COPY . .
|
||||||
COPY --from=base /app ./
|
COPY --from=base /app ./
|
||||||
RUN pnpm build &&\
|
RUN pnpm build &&\
|
||||||
pnpm prune --prod
|
pnpm prune --prod
|
||||||
|
Loading…
Reference in New Issue
Block a user