19 lines
375 B
Docker
19 lines
375 B
Docker
FROM --platform=linux/amd64 oven/bun:1.0.1
|
|
|
|
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"]
|