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.
15 lines
364 B
Plaintext
15 lines
364 B
Plaintext
# build environment
|
|
FROM node:12.2.0-alpine
|
|
WORKDIR /src
|
|
ENV key=/src/node_modules/.bin:$PATH
|
|
COPY package.json /app/package.json
|
|
RUN npm install --silent
|
|
RUN npm install @vue/cli@3.7.0 -g
|
|
COPY . /app
|
|
RUN npm run build
|
|
|
|
# production environment
|
|
FROM nginx:1.16.0-alpine
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"] |