add Arkanum.dev site with docs #97

Merged
OCram85 merged 38 commits from vitepress/node into master 2024-05-22 10:07:33 +02:00
Showing only changes of commit c9614c19ff - Show all commits

View File

@ -1,20 +1,14 @@
FROM oven/bun:1 as builder
#USER bun
#COPY --chown=bun:bun package*.json bun.lockb /app/
COPY . /app
WORKDIR /app
ENV NODE_ENV=production
RUN bun install --frozen-lockfile
RUN bun run --vite docs:build && \
pwd && \
ls -la && \
ls -la /app/docs/.vitepress/dist/
RUN bun run --vite docs:build
FROM caddy:2.7.6-alpine as prod
COPY --from=builder /app/docs/.vitepress/dist/ /arkanum-docs/
RUN ls -la /arkanum-docs/
COPY Caddyfile /etc/caddy
HEALTHCHECK --interval=15s --timeout=3s \
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/ || exit 1