init
This commit is contained in:
commit
e176b1c094
17 changed files with 632 additions and 0 deletions
31
Dockerfile
Normal file
31
Dockerfile
Normal 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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue