Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
3.8 kB ยท 129 lines
Dockerfile
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130# syntax=docker/dockerfile:1.19.0# This file is generated by Dofigen v2.8.0# See https://github.com/lenra-io/dofigen
# manifestsFROM node@sha256:0e0ff40c39bc087845bfb27465a0df4ea419520094bc35842ff83dd8cbe6f9b6 AS manifestsLABEL \ org.opencontainers.image.base.digest="sha256:0e0ff40c39bc087845bfb27465a0df4ea419520094bc35842ff83dd8cbe6f9b6" \ org.opencontainers.image.base.name="docker.io/node:24-slim"WORKDIR /appCOPY \ --link \ "." "/app/"RUN <<EOFmkdir -p /outcp pnpm-workspace.yaml pnpm-lock.yaml package.json /out/find apps packages -name package.json -not -path '*/node_modules/*' -exec cp --parents {} /out/ \;EOF
# installFROM node@sha256:0e0ff40c39bc087845bfb27465a0df4ea419520094bc35842ff83dd8cbe6f9b6 AS installLABEL \ org.opencontainers.image.base.digest="sha256:0e0ff40c39bc087845bfb27465a0df4ea419520094bc35842ff83dd8cbe6f9b6" \ org.opencontainers.image.base.name="docker.io/node:24-slim"ENV \ PATH="$PNPM_HOME:$PATH" \ PNPM_HOME="/pnpm"WORKDIR /appCOPY \ --from=manifests \ --link \ "/out/" "/app/"RUN <<EOFcorepack enable pnpmpnpm install --frozen-lockfile --filter=@openstatus/dashboard...EOF
# builderFROM node@sha256:0e0ff40c39bc087845bfb27465a0df4ea419520094bc35842ff83dd8cbe6f9b6 AS builderLABEL \ org.opencontainers.image.base.digest="sha256:0e0ff40c39bc087845bfb27465a0df4ea419520094bc35842ff83dd8cbe6f9b6" \ org.opencontainers.image.base.name="docker.io/node:24-slim"ENV \ NEXT_PUBLIC_URL="http://localhost:3002" \ PROJECT_ID_VERCEL="test" \ AUTH_SECRET="build-time-placeholder-min-32-chars-long" \ NEXT_PUBLIC_OPENPANEL_CLIENT_ID="test" \ DATABASE_URL="http://libsql:8080" \ PNPM_HOME="/pnpm" \ PATH="$PNPM_HOME:$PATH" \ UNKEY_API_ID="test" \ OPENPANEL_CLIENT_SECRET="test" \ SELF_HOST="true" \ UPSTASH_REDIS_REST_URL="https://test.upstash.io" \ RESEND_API_KEY="test" \ DATABASE_AUTH_TOKEN="test" \ VERCEL_AUTH_BEARER_TOKEN="test" \ STRIPE_SECRET_KEY="test" \ TINY_BIRD_API_KEY="test" \ NODE_ENV="production" \ CRON_SECRET="test" \ TEAM_ID_VERCEL="test" \ NEXT_PUBLIC_SELF_HOST="true" \ UPSTASH_REDIS_REST_TOKEN="test" \ UNKEY_TOKEN="test"WORKDIR /appCOPY \ --link \ "." "/app/"COPY \ --from=install \ --link \ "/app/node_modules" "/app/node_modules"COPY \ --from=install \ --link \ "/app/apps/dashboard/node_modules" "/app/apps/dashboard/node_modules"COPY \ --from=install \ --link \ "/app/packages" "/app/packages"RUN <<EOFcorepack enable pnpmpnpm turbo run build --filter=@openstatus/dashboardEOF
# runtimeFROM node@sha256:0e0ff40c39bc087845bfb27465a0df4ea419520094bc35842ff83dd8cbe6f9b6 AS runtimeLABEL \ io.dofigen.version="2.8.0" \ org.opencontainers.image.base.digest="sha256:0e0ff40c39bc087845bfb27465a0df4ea419520094bc35842ff83dd8cbe6f9b6" \ org.opencontainers.image.base.name="docker.io/node:24-slim"WORKDIR /app/apps/dashboardCOPY \ --from=builder \ --chown=1000:1000 \ --chmod=555 \ --link \ "/app/apps/dashboard/.next/standalone/apps/dashboard/" "./"COPY \ --from=builder \ --chown=1000:1000 \ --link \ "/app/node_modules/" "/app/node_modules/"COPY \ --from=builder \ --chown=1000:1000 \ --link \ "/app/apps/dashboard/.next/static/" "./.next/static/"COPY \ --from=builder \ --chown=1000:1000 \ --link \ "/app/apps/dashboard/public/" "./public/"USER 0:0RUN <<EOFapt-get updateapt-get install -y --no-install-recommends curlrm -rf /var/lib/apt/lists/*EOFUSER 1000:1000EXPOSE 3000HEALTHCHECK \ --interval=30s \ --timeout=10s \ --start-period=45s \ --retries=3 \ CMD curl -f http://localhost:3000/ || exit 1CMD ["node", "server.js"]