Bereite Docusaurus-Deploy mit Docker und eigener Docs-Site vor
This commit is contained in:
17
docs-site/Dockerfile
Normal file
17
docs-site/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM node:20-alpine AS builder
|
||||
WORKDIR /app/docs-site
|
||||
|
||||
COPY docs-site/package.json docs-site/package-lock.json* ./
|
||||
RUN npm install
|
||||
|
||||
COPY docs-site ./
|
||||
COPY docs /app/docs
|
||||
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:1.27-alpine AS runner
|
||||
COPY docs-site/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=builder /app/docs-site/build /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user