feat(*): init
This commit is contained in:
commit
d7626fd483
184 files changed
+5558
No files matched your search
+34
@@ -0,0 +1,34 @@
|
||||
FROM oven/bun:1-alpine AS deps
|
||||
|
||||
ENV TERM=xterm-256color
|
||||
ENV COLORTERM=truecolor
|
||||
ENV BUN_INSTALL_CACHE_DIR=/bun-cache
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json bun.lock* ./
|
||||
|
||||
RUN --mount=type=cache,target=/bun-cache bun install --frozen-lockfile
|
||||
|
||||
|
||||
FROM deps AS builder
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN bun --bun svelte-kit sync
|
||||
RUN bun run build
|
||||
|
||||
|
||||
FROM oven/bun:1-alpine AS runtime
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/build ./build
|
||||
COPY --from=builder /app/serve.ts ./serve.ts
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
ENTRYPOINT ["bun"]
|
||||
CMD ["run", "serve.ts"]
|
||||
Reference in new issue
Block a user