question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm run installer in Dockerfile

See original GitHub issue

Hello,

I’m trying to make an image and writing a Dockerfile:

FROM node:latest
RUN git clone https://github.com/DivanteLtd/vue-storefront.git
WORKDIR /vue-storefront
RUN npm install
RUN /bin/echo -e “No\ngit\n../vue-storefront-api\nhttp://localhost:8080/img/” | npm run installer

But last one doesn’t work, npm run installer requires user input. Is there a way to pass it?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
pszredercommented, Jun 7, 2018

@GarPit we are working on a fully containerized environment for both projects (vue-storefront and vue-storefront-api).

For vue-storefront-api - take a look at the feature/docker branch. Testers welcome! 😃

For the vue-storefront - we are working on an official image, currently available at hub.docker.com is incomplete (for clarity, I will remove it so that it does not cause confusion). There are several architectural challenges to overcome, but the goal is to make the Docker engine the only locally installed requirement for the project.

0reactions
pkarwcommented, Jun 7, 2018

Never tried this 😃 maybe just add the second mode to the installer / getting params from the named args or ENV?

Generally speaking installer uses lot of defaults to generate the config file and maybe it’s a better way to generate the local.json outside the installer?

This is how we probably will approach configs in our official docker

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to cache the RUN npm install instruction when docker ...
I am currently developing a Node backend for my application. When dockerizing it ( docker build . ) the longest phase is the...
Read more >
Build your Node image - Docker Documentation
Once we have our files inside the image, we can use the RUN command to execute the command npm install. This works exactly...
Read more >
'npm install' in a Dockerfile is not installing all my dependencies.
I am running node version v13.14.0 and npm v 6.14.4 inside my docker container. The base image is node:13-alpine. When i run npm...
Read more >
How to call 'npm start' though docker ? - GeeksforGeeks
Step 1: Create a React application using the following command. npx create-react-app docker-react ; Step 2: After creating your project folder( ...
Read more >
Dockerizing a Node.js web app
With your new package.json file, run npm install . If you are using npm version 5 or later, this will generate a package-lock ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found