11 lines
347 B
Docker
11 lines
347 B
Docker
FROM node:18 AS base
|
|
WORKDIR /usr/src/app/
|
|
RUN corepack enable
|
|
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"]
|
|
CMD ["pnpm", "run", "dev"]
|