Skip to content

Commit

Permalink
update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hkbu-kennycheng committed Oct 31, 2024
1 parent db7c683 commit 2561a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WORKDIR /app
RUN npm install && npm run build

ARG EXPRESS_REPO
FROM ${EXPRESS_REPO} as runner
FROM ${EXPRESS_REPO}

COPY --from=build /app/dist /app/public
RUN sed -i 's/next(createError(404));/res.status(404).sendFile(path.join(__dirname, "public", "index.html"));/' /app/app.js

0 comments on commit 2561a45

Please sign in to comment.