Something went wrong. Try again.
A replica of Keytrace
Something went wrong. Try again.
keytrace.dev Dockerfile
1.1 kB · 38 lines
Dockerfile
at main
123456789101112131415161718192021222324252627282930313233343536373839# syntax=docker/dockerfile:1.7
# --- Build the Tap binary from indigo ---FROM golang:1.26-alpine AS tap-buildRUN apk add --no-cache git gcc musl-devENV CGO_ENABLED=1ENV GOTOOLCHAIN=autoRUN go install github.com/bluesky-social/indigo/cmd/tap@latest
# --- Install deps and build the Nuxt app ---FROM node:22-alpine AS node-buildRUN apk add --no-cache python3 make g++ libc6-compatWORKDIR /app
COPY .yarnrc.yml package.json yarn.lock ./COPY .yarn ./.yarnCOPY turbo.json tsconfig.base.json ./COPY packages ./packagesCOPY apps ./apps
RUN corepack enable && yarn install --immutableRUN yarn build
# --- Runtime image: Node + tap binary + built outputs ---FROM node:22-alpine AS runtimeRUN apk add --no-cache libc6-compat tiniWORKDIR /app
COPY --from=tap-build /go/bin/tap /usr/local/bin/tapCOPY --from=node-build /app/apps/keytrace.dev/.output ./apps/keytrace.dev/.outputCOPY --from=node-build /app/apps/host ./apps/host
ENV NODE_ENV=productionENV KEYTRACE_DATA_DIR=/keytrace-dataENV NITRO_HOST=0.0.0.0
ENTRYPOINT ["/sbin/tini", "--"]CMD ["node", "apps/host/index.mjs"]