JTDavis
05/16/2022, 9:51 PMbdw429s
05/16/2022, 10:07 PMbdw429s
05/16/2022, 10:07 PMbdw429s
05/16/2022, 10:07 PMbash
or sh
depending on your base OS and then just cd into your app folder to see what's actually there.bdw429s
05/16/2022, 10:08 PMJTDavis
05/16/2022, 10:08 PMdocker run -dp 3000:3000 \
-w /app -v "$(pwd):/app" \
node:12-alpine \
sh -c "yarn install && yarn run dev"
JTDavis
05/16/2022, 10:08 PMbdw429s
05/16/2022, 10:09 PMyarn install
in the root dir of the container?bdw429s
05/16/2022, 10:09 PM-w
commandbdw429s
05/16/2022, 10:09 PMdocker run -dp 3000:3000 \
-w /app -v "$(pwd):/app" \
node:12-alpine \
sh -c "ls -la"
and see what's in therebdw429s
05/16/2022, 10:10 PM$(pwd)
having the parens like thatbdw429s
05/16/2022, 10:10 PM$PWD
assuming you have an env var of that namebdw429s
05/16/2022, 10:11 PM`pwd`
if you want an expansion that has the output of the pwd
commandJTDavis
05/16/2022, 10:11 PMJTDavis
05/16/2022, 10:11 PMbdw429s
05/16/2022, 10:12 PMecho "$(pwd)"
to see if that even has what you expect 🙂JTDavis
05/16/2022, 10:16 PMbdw429s
05/16/2022, 10:16 PMbdw429s
05/16/2022, 10:17 PMJTDavis
05/16/2022, 10:17 PMbdw429s
05/16/2022, 10:17 PMbdw429s
05/16/2022, 10:18 PMbdw429s
05/16/2022, 10:18 PMJTDavis
05/16/2022, 10:22 PM$ docker run -dp 3000:3000 -w /app -v "/c/workspace/app:/app" node:12-alpine sh -c "ls -la"
docker: Error response from daemon: the working directory 'C:/Program Files/Git/app' is invalid, it needs to be an absolute path.
See 'docker run --help'.
JTDavis
05/16/2022, 10:23 PMbdw429s
05/16/2022, 10:23 PMbdw429s
05/16/2022, 10:24 PMC:/
anywhere so I don't know at what point that is coming into playJTDavis
05/16/2022, 10:24 PMJTDavis
05/16/2022, 10:38 PMJTDavis
05/16/2022, 10:39 PMthisOldDave
05/17/2022, 8:16 AM