Files
Checkmate/Docker/client.Dockerfile
T

22 lines
378 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
2024-08-23 09:46:45 -07:00
# COPY ./Docker/nginx/default.conf /etc/nginx/conf.d/default.conf
2024-08-18 19:17:50 -07:00
COPY --from=build /app/dist /usr/share/nginx/html
CMD ["nginx", "-g", "daemon off;"]