File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 branches :
1111 - main
1212 pull_request :
13+ paths :
14+ - ' **.js'
15+ - ' **.mjs'
16+ - ' **.ts'
17+ - ' **.tsx'
18+ # In case something like eslint or tsc or prettier upgrades
19+ - ' package-lock.json'
20+ # Ultimately, for debugging this workflow itself
21+ - .github/workflows/js-lint.yml
1322
1423jobs :
1524 lint :
Original file line number Diff line number Diff line change @@ -50,8 +50,6 @@ COPY next.config.js ./next.config.js
5050COPY tsconfig.json ./tsconfig.json
5151COPY next-env.d.ts ./next-env.d.ts
5252
53- RUN npx tsc --noEmit
54-
5553RUN npm run build
5654
5755# --------------------------------------------------------------------------------
@@ -94,9 +92,10 @@ COPY --chown=node:node package*.json ./
9492COPY --chown=node:node feature-flags.json ./
9593COPY --chown=node:node next.config.js ./
9694
97- EXPOSE 80
98- EXPOSE 443
99- EXPOSE 4000
95+ # This makes sure server.mjs always picks up the preferred port
96+ ENV PORT=4000
97+ EXPOSE $PORT
98+
10099CMD ["node" , "server.mjs" ]
101100
102101
You can’t perform that action at this time.
0 commit comments