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