Currently the file sync is being done to the container folder /usr/src/app, but the image built starts in /src and has the installed npm dependencies.
I tried to solve the issue by reassigning the WORKDIR in the Dockerfile, but apparently the image pushed to docker hub is not built from that Dockerfile
Steps to reproduce:
Follow the common process to develop with okteto
Deploy movies in cloud
Clone movies
cd into movies/frontend
delete command: yarn start from the okteto.yml manifest
okteto up
You should see you are standing in /src and your file syncing is not done there.
Proposed Solution:
Update Dockerfile so that the final image has yarn. Could be using a one stage image
Update dockerhub image after that
Update manifest so that it uses the Dockerfile to build?
For instance, if you get into the dev container and go to /usr/src/app and execute ln -s /src/node_modules/ node_modules, you can then use yarn start and it will work as expected.
Currently the file sync is being done to the container folder
/usr/src/app
, but the image built starts in/src
and has the installed npm dependencies.I tried to solve the issue by reassigning the
WORKDIR
in the Dockerfile, but apparently the image pushed to docker hub is not built from that DockerfileSteps to reproduce:
command: yarn start
from the okteto.yml manifestYou should see you are standing in
/src
and your file syncing is not done there.Proposed Solution: