Skip to content

Commit 2caf822

Browse files
authored
Merge pull request #11972 from github/repo-sync
repo sync
2 parents 5bbcc86 + e7feb5d commit 2caf822

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/js-lint.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ on:
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

1423
jobs:
1524
lint:

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ COPY next.config.js ./next.config.js
5050
COPY tsconfig.json ./tsconfig.json
5151
COPY next-env.d.ts ./next-env.d.ts
5252

53-
RUN npx tsc --noEmit
54-
5553
RUN npm run build
5654

5755
# --------------------------------------------------------------------------------
@@ -94,9 +92,10 @@ COPY --chown=node:node package*.json ./
9492
COPY --chown=node:node feature-flags.json ./
9593
COPY --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+
10099
CMD ["node", "server.mjs"]
101100

102101

0 commit comments

Comments
 (0)