You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
317 B
Docker
16 lines
317 B
Docker
# base image
|
|
FROM node:12.2.0-alpine
|
|
|
|
# set working directory
|
|
WORKDIR /src
|
|
|
|
# add `/app/node_modules/.bin` to $PATH
|
|
ENV key=/src/node_modules/.bin:$PATH
|
|
|
|
# install and cache app dependencies
|
|
COPY package.json /src/package.json
|
|
RUN npm install
|
|
RUN npm install @vue/cli@3.7.0 -g
|
|
|
|
# start app
|
|
CMD ["npm", "run", "serve"] |