File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,26 +5,31 @@ WORKDIR /snailycad
55# Install pnpm globally and set config in one layer
66RUN npm install -g pnpm && pnpm config set httpTimeout 1200000
77
8- # Copy only package files first for better caching
9- COPY pnpm-lock.yaml package.json ./
8+ # Copy the rest of the source code
9+ COPY . ./
1010
1111FROM base AS deps
1212
1313RUN pnpm install --frozen-lockfile
1414
15- # Copy the rest of the source code
16- COPY . ./
15+ FROM deps AS build
16+
17+ ENV NODE_ENV="production"
18+
19+ # Build all packages (this will also build the API and Client)
20+ RUN pnpm turbo run build --filter="{packages/*}"
21+
1722
18- FROM deps AS api
23+ FROM build AS api
1924ENV NODE_ENV="production"
20- RUN pnpm turbo run build --filter=@snailycad/api
2125WORKDIR /snailycad/apps/api
26+ RUN pnpm run build
2227CMD ["pnpm" , "start" ]
2328
24- FROM deps AS client
29+ FROM build AS client
2530ENV NODE_ENV="production"
31+ WORKDIR /snailycad/apps/client
2632RUN rm -rf /snailycad/apps/client/.next
2733RUN pnpm create-images-domain
28- RUN pnpm turbo run build --filter=@snailycad/client
29- WORKDIR /snailycad/apps/client
34+ RUN pnpm run build
3035CMD ["pnpm" , "start" ]
Original file line number Diff line number Diff line change @@ -24,10 +24,9 @@ function getNextConfigPath() {
2424async function loadNextConfig ( ) {
2525 const configFilePath = getNextConfigPath ( ) ;
2626
27- const data = await import ( configFilePath ) ;
2827 const text = await readFile ( configFilePath , "utf8" ) ;
2928
30- return { data , text } ;
29+ return { text } ;
3130}
3231
3332async function writeNextConfig ( data ) {
You can’t perform that action at this time.
0 commit comments