* static files changes * remake modifiers * test case * some docs changes * deps and rule changes * edit proper interfaces * remake getServer * @elysiajs/swagger * remake tsconfig * ci changes use bun * docs changes * feat(core): hard remake with bun and elysia * chore(release): 8.2.0-alpha * auto release * ci * update global * chore(release): 8.2.1-alpha * ci
26 lines
547 B
Docker
26 lines
547 B
Docker
FROM oven/bun:1.3.13-alpine AS base
|
|
WORKDIR /srv/app
|
|
|
|
# 1. Install production dependencies only
|
|
FROM base AS deps
|
|
COPY package.json bun.lock ./
|
|
RUN bun install --production
|
|
|
|
# 2. Builder stage to compile TypeScript
|
|
FROM base AS builder
|
|
COPY package.json bun.lock ./
|
|
RUN bun install
|
|
COPY . .
|
|
RUN bun run build
|
|
|
|
# 3. Final release stage
|
|
FROM base AS release
|
|
COPY --from=deps /srv/app/node_modules ./node_modules
|
|
COPY --from=builder /srv/app/build ./build
|
|
COPY package.json ./
|
|
|
|
# Run as non-root user
|
|
USER bun
|
|
EXPOSE 3000
|
|
|
|
CMD ["bun", "run", "start"] |