1
0
Fork 0

wip: use bun (1.0) as runtime

This commit is contained in:
Vojtěch Mareš 2023-09-09 00:16:53 +02:00
parent 453e48c2b5
commit b0affaa936
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
6 changed files with 65 additions and 6573 deletions

19
bun.dockerfile Normal file
View 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"]