okteto / movies

React + Node multi service application
Apache License 2.0
77 stars 157 forks source link

Frontend development is broken #53

Closed AgustinRamiroDiaz closed 2 years ago

AgustinRamiroDiaz commented 2 years ago

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:

You should see you are standing in /src and your file syncing is not done there.

Proposed Solution:

AgustinRamiroDiaz commented 2 years ago

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.