-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (25 loc) · 812 Bytes
/
Dockerfile
File metadata and controls
33 lines (25 loc) · 812 Bytes
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
FROM node:24 AS builder
WORKDIR /app
RUN npm install -g pnpm@10.33.2
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY . .
RUN pnpm build
FROM node:24 AS runtime
WORKDIR /app
RUN apt-get update
RUN apt-get install -y gh git git-lfs
RUN rm -rf /var/lib/apt/lists/*
COPY package.json pnpm-lock.yaml ./
COPY bin ./bin
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
FROM runtime AS cli
ENTRYPOINT ["node", "./bin/run.js"]
CMD ["help"]
FROM runtime AS scheduler
ENTRYPOINT ["node", "./bin/run.js", "schedule"]
CMD ["schedule.json", "--setup"]
ENV HEARTBEAT_PATH=/tmp/heartbeat.epoch
ENV COMPLETION_STATUS_PATH=/tmp/completion_status
HEALTHCHECK --interval=1m --timeout=5s --start-period=20s --retries=1 CMD ["node", "./bin/healthcheck.js"]