2023-11-29 07:34:51 +00:00
|
|
|
ARG NODE_VERSION="20.10"
|
2023-06-10 09:15:35 +00:00
|
|
|
ARG ALPINE_VERSION="3.18"
|
2022-06-03 20:42:23 +00:00
|
|
|
|
2023-03-28 19:27:29 +00:00
|
|
|
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION}
|
2022-06-03 20:42:23 +00:00
|
|
|
|
2023-02-17 17:39:18 +00:00
|
|
|
RUN npm install pnpm -g
|
2022-06-03 20:42:23 +00:00
|
|
|
|
2023-02-17 17:39:18 +00:00
|
|
|
WORKDIR /app
|
2022-12-26 21:05:04 +00:00
|
|
|
|
2023-02-17 21:41:59 +00:00
|
|
|
COPY ./pnpm-lock.yaml ./
|
2023-10-01 13:02:17 +00:00
|
|
|
COPY ./patches ./patches
|
2023-03-05 22:44:22 +00:00
|
|
|
RUN pnpm fetch --ignore-scripts
|
2023-02-17 17:39:18 +00:00
|
|
|
|
2023-02-17 21:41:59 +00:00
|
|
|
COPY ./package*.json ./
|
2023-08-28 18:39:02 +00:00
|
|
|
COPY ./packages/shared ./packages/shared
|
2023-02-17 17:39:18 +00:00
|
|
|
|
|
|
|
RUN pnpm install -r --prefer-offline
|
2023-02-17 21:41:59 +00:00
|
|
|
|
|
|
|
COPY ./tsconfig.json ./tsconfig.json
|
|
|
|
COPY ./next.config.mjs ./next.config.mjs
|
|
|
|
COPY ./public ./public
|
2022-06-03 20:42:23 +00:00
|
|
|
|
2023-02-12 17:42:01 +00:00
|
|
|
CMD ["npm", "run", "dev"]
|