Skip to content

Commit

Permalink
created docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
Kacper Jarocki committed Oct 20, 2023
1 parent ff56b13 commit d3910af
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions frontend/Dockerfile
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"]

0 comments on commit d3910af

Please sign in to comment.