Skip to content

Commit cd247cd

Browse files
committed
Cleanup
1 parent 51ec91b commit cd247cd

19 files changed

+1511
-11931
lines changed

.docker/ nginx.conf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
events {
2+
worker_connections 1024;
3+
}
4+
5+
http {
6+
include mime.types;
7+
sendfile on;
8+
9+
server {
10+
listen 8080;
11+
listen [::]:8080;
12+
13+
resolver 127.0.0.1;
14+
autoindex off;
15+
16+
server_name _;
17+
server_tokens off;
18+
19+
root /app;
20+
gzip_static on;
21+
}
22+
}

.docker/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Clone the project
2+
FROM alpine/git as git
3+
4+
ARG REPOSITORY=https://github.com/buggregator/docs
5+
ARG BRANCH=master
6+
RUN git clone -b $BRANCH $REPOSITORY /app
7+
8+
FROM node:19 as node
9+
10+
COPY --from=git /app /app
11+
WORKDIR /app
12+
13+
RUN npm add -D vitepress
14+
RUN npm i
15+
RUN npm run docs:build
16+
17+
FROM nginx:alpine as server
18+
COPY --from=node /app/docs/.vitepress/dist /app

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
/node_modules
22
/.idea
3+
/docs/.vitepress/cache
4+
/docs/.vitepress/dist

docs/.vitepress/cache/deps/@theme_index.js

Lines changed: 0 additions & 331 deletions
This file was deleted.

docs/.vitepress/cache/deps/@theme_index.js.map

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)