23 lines
458 B
Text
23 lines
458 B
Text
ARG NODE_VERSION="20.10"
|
|
ARG ALPINE_VERSION="3.18"
|
|
|
|
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION}
|
|
|
|
RUN npm install pnpm -g
|
|
|
|
WORKDIR /app
|
|
|
|
COPY ./pnpm-lock.yaml ./
|
|
COPY ./patches ./patches
|
|
RUN pnpm fetch --ignore-scripts
|
|
|
|
COPY ./package*.json ./
|
|
COPY ./packages/shared ./packages/shared
|
|
|
|
RUN pnpm install -r --prefer-offline
|
|
|
|
COPY ./tsconfig.json ./tsconfig.json
|
|
COPY ./next.config.mjs ./next.config.mjs
|
|
COPY ./public ./public
|
|
|
|
CMD ["npm", "run", "dev"]
|