dont use multistage
This commit is contained in:
parent
d72ea5814e
commit
f4c507d429
|
@ -7,7 +7,6 @@ RUN apk update && apk add --no-cache build-base gcc autoconf automake zlib-dev l
|
|||
WORKDIR /app
|
||||
|
||||
|
||||
FROM base AS builder
|
||||
COPY pnpm-lock.yaml package.json ./
|
||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
|
||||
COPY ./packages/strapi .
|
||||
|
@ -16,11 +15,10 @@ RUN chown -R node:node /app
|
|||
USER node
|
||||
|
||||
|
||||
FROM builder AS dev
|
||||
ENV NODE_ENV=development
|
||||
CMD ["pnpm", "run", "dev"]
|
||||
# FROM builder AS dev
|
||||
# ENV NODE_ENV=development
|
||||
# CMD ["pnpm", "run", "dev"]
|
||||
|
||||
FROM builder AS release
|
||||
ENV NODE_ENV=production
|
||||
ENTRYPOINT ["pnpm"]
|
||||
CMD ["run", "start"]
|
Loading…
Reference in New Issue