Skip to content

Instantly share code, notes, and snippets.

@alejandroSuch
Created June 6, 2018 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alejandroSuch/89202eb039a55f5aefae3c8f20a79245 to your computer and use it in GitHub Desktop.
Save alejandroSuch/89202eb039a55f5aefae3c8f20a79245 to your computer and use it in GitHub Desktop.
### 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