Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker build fails #26

Open
Skrylar opened this issue Jan 5, 2020 · 2 comments
Open

docker build fails #26

Skrylar opened this issue Jan 5, 2020 · 2 comments

Comments

@Skrylar
Copy link

Skrylar commented Jan 5, 2020

  • Fresh clone
  • make build start
  • Docker crunches for a while
  • Fails because of missing dependencies inside the docker image

https://asciinema.org/a/kZG2zJCqKGPxtSQIJ44TzWzGA

@ncarlier
Copy link
Member

ncarlier commented Jan 6, 2020

Hi,

Make start is a little peculiar. It runs the container in "dev mode", in other words, it mounts the current directory as the application directory. So if node modules are not installed locally (node_modules dir ) the container cannot start.

Two options:

@Skrylar
Copy link
Author

Skrylar commented Jan 7, 2020

Ok.

The README instructions should be changed from:

Or with Docker:
$ git clone https://github.com/nunux-keeper/keeper-web-app.git
$ cd keeper-web-app
$ make build start # Build Docker image and start it

to:

Or with Docker:
$ git clone https://github.com/nunux-keeper/keeper-web-app.git
$ cd keeper-web-app
$ npm install
$ make build start # Build Docker image and start it

(although this did not produce a working build either, but that's due to compile errors with the dependencies i need to check out.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants