swapped await to then for being able to build app

This commit is contained in:
JonaKl
2024-05-31 20:53:54 +02:00
parent 641efea6c4
commit 47e84a54d6

13
Dockerfile Normal file
View File

@@ -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;"]