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.

28 lines
478 B
Docker

# FROM node:14-alpine
# WORKDIR /app
# COPY . .
# RUN npm install
# RUN npm run build
# EXPOSE 8080
# CMD ["npm", "run", "serve"]
# 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
RUN npm run build
EXPOSE 80
# start app
CMD ["npm", "run", "serve"]