Skip to content

Commit 750fc35

Browse files
committed
chore(ci): rm server-proxy.js
1 parent 51b6de8 commit 750fc35

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

projects/app/Dockerfile

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,6 @@ ENV NEXT_PUBLIC_BASE_URL=$base_url
4848
RUN pnpm build:sdks
4949
RUN pnpm --filter=app build
5050

51-
# Bundle server.ts into a single CJS file; only 'next' is kept external (already in standalone output)
52-
# Banner: mirrors what standalone server.js does — chdir to __dirname and load pre-serialized
53-
# Next.js config so that next() skips webpack (config-utils) during startup.
54-
RUN cd projects/app && ./node_modules/.bin/esbuild server.ts \
55-
--bundle \
56-
--platform=node \
57-
--format=cjs \
58-
--outfile=server-proxy.js \
59-
--external:next \
60-
'--banner:js=process.chdir(__dirname);try{const d=require("./.next/required-server-files.json");process.env.__NEXT_PRIVATE_STANDALONE_CONFIG=JSON.stringify(d.config);}catch(e){}'
61-
6251
# Remove build-time-only packages from standalone output before copying to runner.
6352
# These are traced into standalone by mistake (rspack bindings, gnu platform binaries, etc.)
6453
RUN rm -rf projects/app/.next/standalone/node_modules/.pnpm/@next+rspack-binding-*/ \
@@ -74,8 +63,6 @@ WORKDIR /app
7463

7564
ARG proxy
7665
ARG base_url
77-
ARG SHOW_SKILL=false
78-
ENV SHOW_SKILL=$SHOW_SKILL
7966

8067
# create user and use it
8168
RUN addgroup --system --gid 1001 nodejs
@@ -120,4 +107,4 @@ EXPOSE 3000
120107

121108
USER nextjs
122109

123-
ENTRYPOINT ["sh","-c","if [ \"$SHOW_SKILL\" = \"true\" ]; then node --max-old-space-size=4096 ./projects/app/server-proxy.js; else node --max-old-space-size=4096 ./projects/app/server.js; fi"]
110+
ENTRYPOINT ["node","--max-old-space-size=4096","./projects/app/server.js"]

0 commit comments

Comments
 (0)