Kamal
This commit is contained in:
13
dockerfile
Normal file
13
dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
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/conf.d/default.conf
|
||||
WORKDIR /usr/share/nginx/html
|
||||
COPY --from=build /app/content/.vitepress/dist .
|
||||
|
||||
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
Reference in New Issue
Block a user