From 47e84a54d66f7f0766eb51b78807073df09a4949 Mon Sep 17 00:00:00 2001 From: JonaKl Date: Fri, 31 May 2024 20:53:54 +0200 Subject: [PATCH] swapped await to then for being able to build app --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..86b97b2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +# build stage +FROM node:lts-alpine as build-stage +WORKDIR /app +COPY package*.json ./ +RUN npm install +COPY . . +RUN npm run build + +# production stage +FROM nginx:stable-alpine as production-stage +COPY --from=build-stage /app/dist/spa/ /usr/share/nginx/html +EXPOSE 80 +CMD ["nginx", "-g", "daemon off;"]