-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* reduce size by using alpine * copy the right files to nginx
- Loading branch information
1 parent
9573a4d
commit 77c3e85
Showing
2 changed files
with
8 additions
and
8 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
node_modules | ||
dist | ||
.angular/cache | ||
.angular |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
FROM node:18 as build | ||
FROM node:18-alpine as builder | ||
|
||
WORKDIR /usr/local/app | ||
COPY ./ /usr/local/app/ | ||
WORKDIR /app | ||
COPY package*.json . | ||
RUN npm ci | ||
RUN npm run build | ||
COPY . . | ||
RUN npm run build | ||
|
||
|
||
FROM nginx:latest | ||
COPY --from=build /usr/local/app/dist/eventoverview /usr/share/nginx/html | ||
FROM nginx:alpine | ||
COPY --from=builder /app/dist/eventoverview/browser /usr/share/nginx/html | ||
EXPOSE 80 |