Created
June 4, 2019 03:31
-
-
Save phillies/1fd11d1db1edfe7076c17f421a81ac67 to your computer and use it in GitHub Desktop.
Multi-stage build example for creating a vue app running on nginx web server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node as builder | |
RUN git clone https://github.com/phillies/vue_example.git /opt/vue_example | |
WORKDIR /opt/vue_example | |
RUN npm install && npm run build | |
FROM nginx | |
COPY --from=builder /opt/vue_example/dist/ /usr/share/nginx/html/ | |
EXPOSE 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment