20 lines
226 B
Docker
20 lines
226 B
Docker
|
FROM node:18-alpine AS build
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY package.json .
|
||
|
|
||
|
RUN npm install
|
||
|
|
||
|
COPY . .
|
||
|
|
||
|
RUN npm run generate
|
||
|
RUN npm run build
|
||
|
|
||
|
FROM httpd:2.4
|
||
|
|
||
|
COPY --from=build /app/.vitepress/dist /usr/local/apache2/htdocs/
|
||
|
|
||
|
EXPOSE 80
|
||
|
|