mirror of
https://github.com/versia-pub/docs.git
synced 2026-03-13 02:49:16 +01:00
Fix types
This commit is contained in:
parent
dc1b8c7447
commit
437f01f055
13 changed files with 98 additions and 27 deletions
28
Dockerfile
28
Dockerfile
|
|
@ -1,11 +1,24 @@
|
|||
FROM oven/bun:alpine
|
||||
FROM oven/bun:alpine as base
|
||||
|
||||
# Install dependencies into temp directory
|
||||
# This will cache them and speed up future builds
|
||||
FROM base AS install
|
||||
RUN mkdir -p /temp/dev
|
||||
COPY package.json bun.lockb /temp/dev/
|
||||
RUN cd /temp/dev && bun install --frozen-lockfile
|
||||
|
||||
# Install with --production (exclude devDependencies)
|
||||
RUN mkdir -p /temp/prod
|
||||
COPY package.json bun.lockb /temp/prod/
|
||||
RUN cd /temp/prod && bun install --frozen-lockfile --production
|
||||
|
||||
FROM base AS builder
|
||||
|
||||
COPY . /app
|
||||
RUN cd /app && bun install
|
||||
RUN cd /app && bun docs:build
|
||||
|
||||
RUN cd ./app && bun install
|
||||
RUN cd ./app && bun docs:build
|
||||
|
||||
FROM oven/bun:alpine
|
||||
FROM base AS final
|
||||
|
||||
COPY --from=builder /app/.vitepress/dist/ /app
|
||||
|
||||
|
|
@ -14,4 +27,7 @@ LABEL org.opencontainers.image.source "https://github.com/lysand-org/docs"
|
|||
LABEL org.opencontainers.image.vendor "Lysand.org"
|
||||
LABEL org.opencontainers.image.licenses "MIT"
|
||||
LABEL org.opencontainers.image.title "Lysand Docs"
|
||||
LABEL org.opencontainers.image.description "Documentation for Lysand"
|
||||
LABEL org.opencontainers.image.description "Documentation for Lysand"
|
||||
|
||||
WORKDIR /app
|
||||
CMD ["bun", "docs:serve"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue