Skip to content

Commit

Permalink
🐳docker: use bun distroless image (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marukome0743 authored Sep 20, 2024
1 parent e61f21b commit 2999f51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ COPY . .
RUN bun test
RUN bun run build

FROM node:22
FROM oven/bun:distroless
WORKDIR /app
COPY --from=public.ecr.aws/awsguru/aws-lambda-adapter:0.8.4 /lambda-adapter /opt/extensions/lambda-adapter

Expand All @@ -21,4 +21,4 @@ COPY --from=builder /usr/src/app/.next/static ./.next/static

EXPOSE 3000
ENV AWS_LWA_ENABLE_COMPRESSION=true AWS_LWA_INVOKE_MODE=response_stream HOSTNAME=0.0.0.0 PORT=3000
ENTRYPOINT ["/nodejs/bin/node", "server.js"]
ENTRYPOINT ["/usr/local/bin/bun", "server.js"]

0 comments on commit 2999f51

Please sign in to comment.