npm run installer in Dockerfile
See original GitHub issueHello,
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:
- Created 5 years ago
- Comments:14 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
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