AOEpeople/desk-compass

Optimize Dockerfile: only node modules from backend, no dev dependencies

Closed this issue · 0 comments

resah commented

Is

Right now the Docker image will contain all node modules for frontend and backend, both dependencies and dev dependencies.

Since the frontend is build to a static page, we do not need the frontend dependencies.
Once the backend is build, we do not need the dev dependencies anymore.

Should

Docker image contains only node modules for backend, without dev dependencies.