I started learning docker this week. There is no live updation in my react vite project.
changed hello world-> hello docker
in docker latest code but webpage no changes
the code is given below
https://github.com/Akshaypmna18/docker
Dockerfile: https://github.com/Akshaypmna18/docker/blob/master/react/Dockerfile
deanayalon
(Dean Ayalon)
2
Your repository is either private, or you linked it wrong
1 Like
Thank you so much. It’s public now
deanayalon
(Dean Ayalon)
4
Works for me
How are you running your containers?
Here’s what I did:
services:
dev:
image: akshaypmna18/react
# You should not name your image 'react'
build: .
ports:
- 5173:5173
volumes:
- ./src:/app/src:ro
Then simply run using docker compose up
I see you’re not using Compose, I suggest you start doing so, but if you don’t want to, that’d translate to these CLI commands:
docker build . -t akshaypmna18/react
docker run -p 5173:5173 -v ./src:/app/src:ro akshaypmna18/react
1 Like
I’m just a beginner. That is why I couldn’t figure out such small issues.
Anyway Thank you so much deanayalon.
Is there any way we can connect each other.
system
(system)
Closed
6
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.