This commit is contained in:
암냥 2026-04-15 00:56:08 +09:00
commit 6786cb6148
No known key found for this signature in database
31 changed files with 2352 additions and 0 deletions

34
apps/backend/Dockerfile Normal file
View file

@ -0,0 +1,34 @@
FROM oven/bun AS build
WORKDIR /app
# Cache packages installation
COPY package.json package.json
COPY bun.lock bun.lock
RUN bun install
COPY ./src ./src
ENV NODE_ENV=production
RUN bun build \
--compile \
--minify-whitespace \
--minify-syntax \
--outfile server \
src/index.ts
FROM gcr.io/distroless/base
USER mizuki:mizuki
WORKDIR /app
COPY --from=build --chown=mizuki:mizuki /app/server server
ENV NODE_ENV=production
CMD ["./server"]
EXPOSE 3000