fp/d.strapi.dockerfile

11 lines
351 B
Plaintext
Raw Normal View History

2024-06-12 04:28:36 +00:00
FROM node:18 AS base
WORKDIR /usr/src/app/
RUN corepack enable
2024-05-27 22:20:58 +00:00
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
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"]
2024-07-04 21:20:29 +00:00
CMD ["pnpm", "run", "develop"]