Files
Checkmate/Docker/client.Dockerfile
T

21 lines
312 B
Docker
Raw Normal View History

2024-08-18 19:17:50 -07:00
FROM node:20-alpine as build
2024-06-24 16:04:06 -07:00
WORKDIR /app
COPY ./Client/package*.json ./
RUN npm install
COPY ./Client .
RUN npm run build
2024-08-18 19:17:50 -07:00
# RUN npm install -g serve
2024-06-24 16:04:06 -07:00
2024-08-18 19:17:50 -07:00
# CMD ["serve","-s", "dist", "-l", "5173"]
2024-06-24 16:04:06 -07:00
2024-08-18 19:17:50 -07:00
FROM nginx:1.27.1-alpine
COPY --from=build /app/dist /usr/share/nginx/html
CMD ["nginx", "-g", "daemon off;"]