Skip to content

Commit b2d11ef

Browse files
authored
Fix Dockerfile issues (github#20438)
1 parent be16162 commit b2d11ef

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎Dockerfile‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,7 @@ COPY webpack.config.js ./webpack.config.js
5050
COPY next.config.js ./next.config.js
5151
COPY tsconfig.json ./tsconfig.json
5252

53-
RUN npx tsc
54-
55-
# We need to copy data in order to do the build
56-
COPY --chown=node:node data ./data
53+
RUN npx tsc --noEmit
5754

5855
RUN npm run build
5956

@@ -88,6 +85,7 @@ ENV AIRGAP true
8885
# Copy only what's needed to run the server
8986
COPY --chown=node:node assets ./assets
9087
COPY --chown=node:node content ./content
88+
COPY --chown=node:node data ./data
9189
COPY --chown=node:node includes ./includes
9290
COPY --chown=node:node layouts ./layouts
9391
COPY --chown=node:node lib ./lib
@@ -96,6 +94,7 @@ COPY --chown=node:node translations ./translations
9694
COPY --chown=node:node server.mjs ./server.mjs
9795
COPY --chown=node:node package*.json ./
9896
COPY --chown=node:node feature-flags.json ./
97+
COPY --chown=node:node next.config.js ./
9998

10099
EXPOSE 80
101100
EXPOSE 443

0 commit comments

Comments
 (0)