-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding building in build container & nginx to run
- Loading branch information
1 parent
26554fa
commit e1c4462
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
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
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 |