Open daxeh opened 7 years ago
FROM node:6.10.0-alpine WORKDIR /app COPY package.json /app RUN npm install
COPY . /app EXPOSE 3000 CMD ["npm", "start"]
same for me
@daxeh @stychu did you guys figure out how to fix this?if yes please direct me on the fix or workaround i am stuck at this same issue now.
Description
docker build -t vue-app .
When building a docker image from generated Dockerfile, it fails in step # 4 attempting to install npm via git repo (error output below)
An additional command (to install git) is required to be able to proceed;
Error output
Environment: MacOS Sierra Docker version 17.03.1-ce, build c6d412e Node v6.11.0 NPM v5.0.3 Yeoman v2.0.0
Dockerfile FROM mhart/alpine-node:6 WORKDIR /opt/app ADD . /opt/app RUN npm install CMD ["npm","test"]