This commit is contained in:
암냥 2025-12-11 01:16:37 +09:00
commit e176b1c094
No known key found for this signature in database
17 changed files with 632 additions and 0 deletions

31
Dockerfile Normal file
View file

@ -0,0 +1,31 @@
FROM oven/bun:alpine as build
# Set timezone to KST
ENV TZ=Asia/Seoul
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /app
# Copy dependency files first (improves layer caching)
COPY package.json bun.lock ./
# Install dependencies (cached until package files change)
RUN bun install --frozen-lockfile
# Copy application code
COPY . .
RUN bun run ./cli/git-commit-build.ts
RUN bun run build
FROM alpine:latest as runtime
ENV TZ=Asia/Seoul
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /app
COPY --from=build /app/yanmang .
COPY --from=build /app/version .
CMD ["./yanmang"]