Created
June 6, 2018 06:25
-
-
Save alejandroSuch/89202eb039a55f5aefae3c8f20a79245 to your computer and use it in GitHub Desktop.
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
### BUILDER ### | |
FROM alexsuch/angular-cli:6.0.5 as builder | |
COPY . /usr/src/markdown-editor/ | |
WORKDIR /usr/src/markdown-editor | |
RUN npm install | |
RUN ng build --prod | |
### FINAL IMAGE ### | |
FROM nginx:alpine | |
COPY --from=builder /usr/src/markdown-editor/dist/markdown-editor/ /var/www/markdown-editor/ | |
COPY nginx.conf /etc/nginx/nginx.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment