Add jobs service with script execution, configuration support, and control interface.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1f6d41ab06
commit
0ad5b5f44f
27 files changed
+1108
-45
No files matched your search
@@ -0,0 +1,16 @@
|
||||
# Build context is the repository root.
|
||||
FROM node:24-alpine AS build
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
RUN corepack pnpm install --frozen-lockfile \
|
||||
&& corepack pnpm --filter @homepage/jobs-service build
|
||||
|
||||
FROM node:24-alpine
|
||||
# Tools job scripts can rely on.
|
||||
RUN apk add --no-cache bash coreutils curl git jq \
|
||||
&& printf '#!/bin/sh\nexec node /app/jobctl.js "$@"\n' > /usr/local/bin/jobctl \
|
||||
&& chmod 0755 /usr/local/bin/jobctl
|
||||
COPY --from=build /src/apps/jobs/dist/ /app/
|
||||
# Compose runs the service as the owner of the content directory instead.
|
||||
USER 10003:10003
|
||||
CMD ["node", "/app/main.js"]
|
||||
Reference in new issue
Block a user