new-home/Dockerfile
José Henrique 2817165386
All checks were successful
Master Build / Build and Push Docker Image (amd64) (push) Successful in 1m33s
Master Build / Update running container (push) Successful in 11s
update base image to node:23-slim and change build output directory to /app/dist
2025-01-23 08:20:34 -03:00

21 lines
263 B
Docker

FROM node:23-slim AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
RUN ls -la /app
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
# Start Nginx server
CMD ["nginx", "-g", "daemon off;"]