Skip to content

Commit c1487bd

Browse files
authored
Feature/12004/fix docker build dependecies (#830)
* Manually add generated files and fix port * remove 8088 from start command
1 parent a415f82 commit c1487bd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,11 @@ RUN chown nextjs:nodejs .next
6161

6262
# Automatically leverage output traces to reduce image size
6363
# https://nextjs.org/docs/advanced-features/output-file-tracing
64+
COPY --from=builder --chown=nextjs:nodejs /app/src/__generated__/ ./src/__generated__/
6465
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
6566
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
6667

6768
USER nextjs
6869

6970

70-
CMD ["sh","-c", "PORT=${CADENCE_WEB_PORT:-8088} exec node server.js"]
71+
CMD ["sh","-c", "CADENCE_WEB_PORT=${CADENCE_WEB_PORT:-8088} PORT=${CADENCE_WEB_PORT} exec node server.js"]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"dev": "next dev -p ${CADENCE_WEB_PORT} | pino-pretty",
77
"build": "NODE_ENV=production && next build",
8-
"start": "next start -p ${CADENCE_WEB_PORT-8088}",
8+
"start": "next start -p ${CADENCE_WEB_PORT}",
99
"lint": "next lint",
1010
"typecheck": "tsc --noemit",
1111
"install-idl": "mkdir -p node_modules && cd node_modules && npx --yes tiged https://github.com/cadence-workflow/cadence-idl cadence-idl --force",

0 commit comments

Comments
 (0)