Replies: 1 comment 2 replies
-
Also you are not mounting on the correct path. version: '3.8'
services:
vitepress:
build:
context: .
dockerfile: ./Dockerfile
ports:
- "8080:8080"
volumes:
- ./:/app
- /app/node_modules
command: yarn run dev |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I tried running the Vite project in Docker. I searched through the documentation and found many solutions provided by others. While I was able to successfully run it and achieve polling to refresh the page, changes in the code are not reflected on the page.
this is my vite config
this is my docker file
this is my docker compose yml
I have simplified the issue down to the project address below, which is an original Vite project that can be quickly replicated.
https://github.com/jumodada/vite-docker-issue
So far, the polling refresh is working properly, but the actual effect is not meeting expectations.
Reproduction
https://github.com/jumodada/vite-docker-issue
Steps to reproduce
run
my docker version
Docker: 27.2.0
Docker Compose version v2.29.2-desktop.2
System Info
Used Package Manager
npm
Logs
No response
Validations
Beta Was this translation helpful? Give feedback.
All reactions