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" ]