hub-site/Dockerfile

13 lines
305 B
Text
Raw Normal View History

2024-11-18 19:41:43 -08:00
# build stage
FROM node:lts-alpine as build-stage
2024-11-15 09:13:20 -08:00
WORKDIR /app
COPY package*.json ./
RUN npm install
2024-11-18 19:41:43 -08:00
COPY . .
2024-11-15 09:13:20 -08:00
RUN npm run build
2024-11-18 19:41:43 -08:00
# production stage
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]