Dockerization app
Deploy NPM app / Deploy NPM (push) Has been cancelled

This commit is contained in:
Antoni Nuñez Romeu
2026-07-22 13:09:29 +02:00
parent f31c2a2995
commit 8d0373facf
4 changed files with 47 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM node:22-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:stable-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]