Skip to content

Commit

Permalink
Adding building in build container & nginx to run
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicklas2751 authored and AlexanderZellober committed Oct 26, 2020
1 parent 26554fa commit e1c4462
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Build stage
FROM trion/ng-cli-karma AS builder
LABEL maintainer="nicklas@wiegandt.eu,thesasch_github@wiegandt.net"
USER 1000
WORKDIR /tmp
# copy app files
COPY . .
# install node packages
RUN npm install && \
#build package
npm run all

FROM nginx:stable-alpine
LABEL maintainer="nicklas@wiegandt.eu,thesasch_github@wiegandt.net"
COPY --from=builder --chown=101:101 /tmp/dist /usr/share/nginx/html

0 comments on commit e1c4462

Please sign in to comment.