wip: use bun (1.0) as runtime
This commit is contained in:
parent
453e48c2b5
commit
b0affaa936
6 changed files with 65 additions and 6573 deletions
19
bun.dockerfile
Normal file
19
bun.dockerfile
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
FROM --platform=linux/amd64 oven/bun:1.0.0
|
||||
|
||||
WORKDIR /app
|
||||
EXPOSE 3000
|
||||
ENV PORT 3000
|
||||
|
||||
ARG NEXT_TELEMETRY_DISABLED=1
|
||||
ARG SKIP_ENV_VALIDATION=1
|
||||
ENV NODE_ENV=production
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y ca-certificates openssl=1.1.1n-0+deb11u5
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN bun install --frozen-lockfile
|
||||
RUN bun --bun run build
|
||||
|
||||
CMD ["bun", "run", "/app/.next/standalone/server.js"]
|
||||
Reference in a new issue