Files
ivanch.me/Dockerfile
Jose Henrique 72c7d6c9e0
Some checks failed
Homepage Build and Deploy (Test) / Build Homepage Image (push) Successful in 32s
Homepage Build and Deploy (Test) / Deploy Homepage (push) Failing after 3s
new pipeline and build improvements
2026-07-10 17:06:16 -03:00

19 lines
315 B
Docker

FROM node:22-alpine AS build
WORKDIR /src
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN OUTPUT_DIR=/dist npm run build:production
FROM nginx:alpine-slim AS final
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build /dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]