Skip to content
Discussion options

You must be logged in to vote

Make sure you have Docker Desktop installed and that it is version 2.22 or higher, since that is when Compose Watch was introduced. You can check withdocker compose versionin your terminal.

Update vite.config.js
As covered earlier, this is the first thing you do before touching any Docker file. Set host to 0.0.0.0 and explicitly set the port to 5173. Without this, the container will run but your browser will never reach it.

Write your Dockerfile
This is a development Dockerfile, so its only job is to install dependencies and start the Vite dev server. It does not build for production. The steps inside it are: choose a Node base image, set a working directory, copy package.json in first, r…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mohameden19961
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants