From 4d09b240bf4b65ae25f4a9d09bc48d9447dea685 Mon Sep 17 00:00:00 2001 From: "aurian.jault" Date: Sat, 29 Jun 2024 20:16:51 +0200 Subject: [PATCH] Deployment --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c7a47ef --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM node:latest as build +WORKDIR /app +COPY ./ /app +RUN npm install +RUN npm run build + +# Stage 2: Serve app with nginx server +FROM nginx:latest +COPY --from=build /app/dist/sample-angular-app /usr/share/nginx/html +EXPOSE 80