Agent Skills
› nixopus/nixopus
› shell-deploy
shell-deploy
GitHub提供 Shell 脚本应用的部署指南,涵盖解释器检测、Dockerfile 构建模式及 setup 脚本处理。适用于启动 start.sh 或需容器化部署 Shell 项目时。
Trigger Scenarios
检测到 start.sh 文件
需要部署 Shell 脚本应用
生成 Dockerfile 用于 Shell 项目
Install
npx skills add nixopus/nixopus --skill shell-deploy -g -y
SKILL.md
Frontmatter
{
"name": "shell-deploy",
"metadata": {
"version": "1.0"
},
"description": "Deploy shell script applications — interpreter detection, setup scripts, and Dockerfile patterns. Use when deploying a shell script project, or when start.sh is detected."
}
Shell Script Deployment
Detection
Project is a shell script application if start.sh exists in the root directory.
Shell Interpreter
Detected from the shebang line of the entry script:
| Shell | Shebang | Notes |
|---|---|---|
| bash | #!/bin/bash |
Available in base image |
| sh | #!/bin/sh |
Available in base image |
| dash | #!/bin/dash |
Uses sh in base image |
| zsh | #!/bin/zsh |
Must be installed in Dockerfile |
No shebang defaults to sh.
Setup Scripts
If a setup.sh file exists alongside start.sh, it runs during the Docker build to prepare the environment (install tools, generate config, etc.). Files created by the setup script are available at runtime.
Dockerfile Patterns
Basic
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY start.sh .
RUN chmod +x start.sh
EXPOSE 8080
CMD ["./start.sh"]
With setup script
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . .
RUN chmod +x start.sh setup.sh
RUN ./setup.sh
EXPOSE 8080
CMD ["./start.sh"]
Version History
- cf05d97 Current 2026-08-20 14:52


