new-home/Dockerfile
José Henrique b21b165723
Some checks failed
Master Build / Build and Push Docker Image (amd64) (push) Failing after 57s
Master Build / Update running container (push) Has been skipped
update base image in Dockerfile to node:9.8-slim
2025-01-22 22:07:47 -03:00

21 lines
265 B
Docker

FROM node:9.8-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/build /usr/share/nginx/html
EXPOSE 80
# Start Nginx server
CMD ["nginx", "-g", "daemon off;"]