hpg/dockerfile
Romein van Buren 60f7fe858b
All checks were successful
Build / build (push) Successful in 38s
Add dockerfile and build action
2025-01-18 10:31:13 +01:00

14 lines
286 B
Plaintext

FROM node:16-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM nginx:alpine
COPY nginx.conf /etc/nginx/nginx.conf
WORKDIR /usr/share/nginx/html
COPY --from=build /app/content/.vitepress/dist .
ENTRYPOINT ["nginx", "-g", "daemon off;"]