From dd6dbb6236d7b713fcb8136535a140e376e1348d Mon Sep 17 00:00:00 2001 From: Wanja Krah Date: Thu, 26 Dec 2024 20:24:15 +0100 Subject: [PATCH] docker setup --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d8b0ba4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM node:20-bullseye as build +WORKDIR /app + +COPY package*.json ./ + +RUN npm install +RUN npm install -g @angular/cli + +COPY . ./ + +RUN ng build --configuration=production + +FROM nginx:latest +COPY --from=build app/dist/aftas-angular /usr/share/nginx/html + +EXPOSE 80