Skip to content

Commit

Permalink
Expose webapp correctly in Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
aflatter committed Feb 5, 2025
1 parent c4721d8 commit 609b927
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docker/Dockerfile.webapp
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ COPY --chown=node:node ./src/webapp ./

RUN npm install

CMD ["npm", "start"]
# This assumes that the `start` script in `package.json` invokes `vite`.
CMD ["npm", "start", "--", "--host=0.0.0.0", "--port=3000", "--strictPort"]
2 changes: 1 addition & 1 deletion src/webapp/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ export default defineConfig({
}),
],
server: {
open: true,
open: true
}
})

0 comments on commit 609b927

Please sign in to comment.