Skip to content

Commit

Permalink
ci: change how ci build core runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
rayriffy committed Feb 10, 2024
1 parent 6da6bd1 commit f9d5bfb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions web/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,18 @@ RUN bun -v
FROM base as deps-prod
WORKDIR /app

COPY package.json bun.lockb ./
RUN bun i --production --ignore-scripts
COPY . .
RUN bun i --production

# ? -------------------------

FROM base as builder
WORKDIR /app

COPY package.json bun.lockb ./
RUN bun i --ignore-scripts

COPY postcss.config.cjs svelte.config.js tailwind.config.cjs tsconfig.json vite.config.ts ./
COPY static ./static
COPY tools ./tools
COPY src ./src
COPY . .
RUN bun i

RUN cd web
RUN bun --bun run vite build
RUN bun ./tools/patchSW.ts

Expand All @@ -53,8 +49,8 @@ COPY package.json ./
COPY --from=base /root/.bun/bin/bun bun
# COPY --from=base /opt /
COPY --from=deps-prod /app/node_modules ./build/node_modules
COPY --from=builder /app/build ./build
COPY --from=builder /app/.svelte-kit ./.svelte-kit
COPY --from=builder /app/web/build ./build
COPY --from=builder /app/web/.svelte-kit ./.svelte-kit
# COPY public public

CMD ["./bun", "./build/index.js"]
Binary file modified bun.lockb
Binary file not shown.

0 comments on commit f9d5bfb

Please sign in to comment.