Something went wrong. Try again.
A plug-and-play dashboard for all your self-hosted services
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445#### DEPENDENCIES
FROM oven/bun:latest AS depsWORKDIR /app
COPY package.json bun.lockb ./
RUN bun install --frozen-lockfile
#### BUILDER
FROM oven/bun:latest AS builderENV NEXT_TELEMETRY_DISABLED=1ENV SKIP_ENV_VALIDATION=1ENV NEXT_PUBLIC_APP_SIZE=defaultWORKDIR /app
COPY --from=deps /app/node_modules ./node_modulesCOPY --from=deps /app/bun.lockb ./bun.lockbCOPY . .
RUN bun run build
#### RUNNER
FROM oven/bun:latest AS runnerWORKDIR /appENV NODE_ENV=productionENV NEXT_TELEMETRY_DISABLED=1ENV APP_DATA_PATH=/configENV APP_PATH=/appENV NEXT_PUBLIC_APP_SIZE=default
RUN apt-get update -y && apt-get install -y openssl
COPY --from=builder /app/next.config.ts ./COPY --from=builder /app/public ./publicCOPY --from=builder /app/package.json ./package.jsonCOPY --from=builder /app/.next/standalone ./COPY --from=builder /app/.next/static ./.next/static
EXPOSE 3000ENV PORT=3000
CMD ["server.js"]