diff --git a/docs/Dockerfile b/docs/Dockerfile new file mode 100644 index 00000000..a13a59fb --- /dev/null +++ b/docs/Dockerfile @@ -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" ] diff --git a/docs/fly.toml b/docs/fly.toml new file mode 100644 index 00000000..c85d5812 --- /dev/null +++ b/docs/fly.toml @@ -0,0 +1,3 @@ +app = "pluralkit-docs" +primary_region = "arn" +http_service.internal_port = 8000 diff --git a/netlify.toml b/netlify.toml deleted file mode 100644 index 9a00fb7f..00000000 --- a/netlify.toml +++ /dev/null @@ -1,6 +0,0 @@ -# Configuration for Netlify (website deployment, etc) - -[build] -base = "docs/" -publish = "content/.vuepress/dist" -command = "npm run build"