chore: move docs to fly

This commit is contained in:
alyssa 2025-04-07 00:56:18 +00:00
parent 19616b6bbb
commit eca5cbff97
3 changed files with 21 additions and 6 deletions

18
docs/Dockerfile Normal file
View file

@ -0,0 +1,18 @@
FROM alpine:latest AS builder
RUN apk add nodejs-current yarn
WORKDIR /build
COPY . .
RUN yarn
ENV NODE_OPTIONS=--openssl-legacy-provider
RUN yarn build
FROM alpine:latest
RUN apk add caddy
WORKDIR /app
COPY --from=builder /build/content/.vuepress/dist /app
ENTRYPOINT [ "/usr/sbin/caddy", "file-server", "-l", "0.0.0.0:8000", "-r", "/app" ]

3
docs/fly.toml Normal file
View file

@ -0,0 +1,3 @@
app = "pluralkit-docs"
primary_region = "arn"
http_service.internal_port = 8000

View file

@ -1,6 +0,0 @@
# Configuration for Netlify (website deployment, etc)
[build]
base = "docs/"
publish = "content/.vuepress/dist"
command = "npm run build"