fp/d.strapi.dockerfile

11 lines
395 B
Plaintext
Raw Normal View History

2024-07-23 02:59:41 +00:00
FROM node:20 AS strapi
WORKDIR /usr/src/app/
2024-07-14 05:20:35 +00:00
RUN corepack enable && corepack prepare pnpm@9.5.0 --activate
2024-07-04 21:20:29 +00:00
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
2024-07-23 02:59:41 +00:00
COPY ./packages/strapi/package.json ./packages/strapi/pnpm-lock.yaml .
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
COPY ./packages/strapi/ .
RUN ["pnpm", "run", "build"]
CMD ["pnpm", "run", "develop"]