-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (30 loc) · 1.07 KB
/
Copy pathDockerfile
File metadata and controls
38 lines (30 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# syntax=docker/dockerfile:1.7
# --- Build the Tap binary from indigo ---
FROM golang:1.26-alpine AS tap-build
RUN apk add --no-cache git gcc musl-dev
ENV CGO_ENABLED=1
ENV GOTOOLCHAIN=auto
RUN go install github.com/bluesky-social/indigo/cmd/tap@latest
# --- Install deps and build the Nuxt app ---
FROM node:22-alpine AS node-build
RUN apk add --no-cache python3 make g++ libc6-compat
WORKDIR /app
COPY .yarnrc.yml package.json yarn.lock ./
COPY .yarn ./.yarn
COPY turbo.json tsconfig.base.json ./
COPY packages ./packages
COPY apps ./apps
RUN corepack enable && yarn install --immutable
RUN yarn build
# --- Runtime image: Node + tap binary + built outputs ---
FROM node:22-alpine AS runtime
RUN apk add --no-cache libc6-compat tini
WORKDIR /app
COPY --from=tap-build /go/bin/tap /usr/local/bin/tap
COPY --from=node-build /app/apps/keytrace.dev/.output ./apps/keytrace.dev/.output
COPY --from=node-build /app/apps/host ./apps/host
ENV NODE_ENV=production
ENV KEYTRACE_DATA_DIR=/keytrace-data
ENV NITRO_HOST=0.0.0.0
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["node", "apps/host/index.mjs"]