forked from NataliaJanda/Projekt-bdio
-
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.
- Loading branch information
Kacper Jarocki
committed
Oct 20, 2023
1 parent
ff56b13
commit d3910af
Showing
1 changed file
with
22 additions
and
3 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,4 +1,23 @@ | ||
FROM ubuntu:latest | ||
LABEL authors="kacper" | ||
# Use an official Node.js runtime as the base image | ||
FROM node:16 as build | ||
|
||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
|
||
RUN npm install -g @angular/cli | ||
|
||
RUN npm install | ||
|
||
COPY . . | ||
|
||
RUN ng build | ||
|
||
FROM nginx:alpine | ||
|
||
COPY --from=build /app/dist/frontend /usr/share/nginx/html | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["nginx", "-g", "daemon off;"] | ||
|
||
ENTRYPOINT ["top", "-b"] |