@wdyy/skills 0.1.12 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.well-known/skills/index.json +2 -2
- package/.well-known/skills/wdyy-deployment-standard/SKILL.md +37 -47
- package/.well-known/skills/wdyy-deployment-standard/agents/openai.yaml +2 -2
- package/.well-known/skills/wdyy-deployment-standard/reference/docker-delivery-rules.md +110 -0
- package/.well-known/skills/wdyy-deployment-standard/scripts/generate-deployment-files.mjs +161 -155
- package/.well-known/skills/wdyy-deployment-standard/scripts/generate-deployment-files.test.mjs +133 -95
- package/.well-known/skills/wdyy-deployment-standard/scripts/validate-deployment-package.mjs +109 -116
- package/.well-known/skills/wdyy-deployment-standard/scripts/validate-deployment-package.test.mjs +309 -298
- package/.well-known/skills/wdyy-deployment-standard/templates/backend.Dockerfile.template +17 -0
- package/.well-known/skills/wdyy-deployment-standard/templates/deploy.sh.template +231 -252
- package/.well-known/skills/wdyy-deployment-standard/templates/docker-compose.yml +18 -13
- package/.well-known/skills/wdyy-deployment-standard/templates/dockerignore.template +1 -1
- package/.well-known/skills/wdyy-deployment-standard/templates/env.example.template +3 -19
- package/.well-known/skills/wdyy-deployment-standard/templates/frontend-container.conf.template +7 -4
- package/.well-known/skills/wdyy-deployment-standard/templates/frontend.Dockerfile.template +12 -4
- package/README.md +2 -2
- package/lib/wdyy-cli.js +2 -1
- package/package.json +1 -1
- package/.well-known/skills/wdyy-deployment-standard/reference/linux-deployment-rules.md +0 -99
- package/.well-known/skills/wdyy-deployment-standard/templates/Dockerfile.template +0 -22
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
ARG BACKEND_BASE_IMAGE
|
|
2
|
+
FROM ${BACKEND_BASE_IMAGE} AS build
|
|
3
|
+
WORKDIR /app
|
|
4
|
+
COPY . .
|
|
5
|
+
RUN corepack enable && pnpm install --frozen-lockfile
|
|
6
|
+
RUN pnpm --filter ./src/backend build
|
|
7
|
+
RUN pnpm --filter ./src/backend deploy --prod --legacy /runtime
|
|
8
|
+
|
|
9
|
+
FROM ${BACKEND_BASE_IMAGE} AS runtime
|
|
10
|
+
WORKDIR /app
|
|
11
|
+
ARG BACKEND_PORT
|
|
12
|
+
ENV NODE_ENV=production
|
|
13
|
+
ENV PORT=${BACKEND_PORT}
|
|
14
|
+
LABEL org.opencontainers.image.title="wdyy-backend"
|
|
15
|
+
COPY --from=build /runtime ./src/backend/
|
|
16
|
+
EXPOSE ${BACKEND_PORT}
|
|
17
|
+
CMD ["node", "src/backend/dist/main.js"]
|