mirror of
https://github.com/Mail-0/Zero.git
synced 2026-07-01 08:16:28 +00:00
34 lines
581 B
Docker
34 lines
581 B
Docker
FROM oven/bun:canary
|
|
|
|
WORKDIR /app
|
|
|
|
# Install turbo globally
|
|
RUN bun install -g next turbo
|
|
|
|
|
|
COPY package.json bun.lock turbo.json ./
|
|
|
|
RUN mkdir -p apps packages
|
|
|
|
COPY apps/*/package.json ./apps/
|
|
COPY packages/*/package.json ./packages/
|
|
COPY packages/tsconfig/ ./packages/tsconfig/
|
|
|
|
RUN bun install
|
|
|
|
COPY . .
|
|
|
|
# Installing with full context. Prevent missing dependencies error.
|
|
RUN bun install
|
|
|
|
|
|
RUN bun run build
|
|
|
|
ENV NODE_ENV=production
|
|
|
|
# Resolve Nextjs TextEncoder error.
|
|
ENV NODE_OPTIONS=--no-experimental-fetch
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["bun", "run", "start", "--host", "0.0.0.0"] |