Thành Lê:
hi everyone, i have these dockerfile
and docker-compose
to build a container for my vue3 webapp for studying purpose, i have ports
mapping in docker-compose
, but i can not access to the localhost:5173, i have’nt figure it out yet, so can anyone help me
Al West:
Either correct your docker-compose to the correct port, or set the port in the CMD in your Dockerfile:
https://pnpm.io/cli/server/#--port
Thành Lê:
thanks for you support, i figure out why i can not access, in the last line of Dockerfile the
CMD ["pnpm", "dev", "--", "--host", "0.0.0.0"]
the --
options that i passed in is a mistake and that’s problem. What’s a mistake, LOL