Skip to content
Back to skills

Entrypoint

ASecurity

Generates entrypoint.sh script for Docker container runtime environment variable injection. Replaces placeholder values in built assets with actual environment variables at container startup.

  • 4 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 12, 2026
developmentjavascriptjavadockerfrontend

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add aibot88/sec_skill_store --skill entrypoint --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Entrypoint?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Entrypoint
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aibot88-entrypoint/badge)](https://www.skillsdirectory.com/skills/aibot88-entrypoint)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: entrypoint
description: Generates entrypoint.sh script for Docker container runtime environment variable injection. Replaces placeholder values in built assets with actual environment variables at container startup.
---

# Entrypoint Script Skill

## Purpose
Generate entrypoint.sh script for Docker container runtime environment variable injection.

## Output
Create the file: `entrypoint.sh` in the root directory

## Example File
See: `examples.md` in this directory for complete examples and detailed explanations.

## Conditional Logic

### JS Environment Substitution
- **If** `application_type: "standalone"` → Include the for loop that processes app*.js files with envsubst
- **If** `application_type: "micro-frontend"` → Omit the for loop (launcher handles environment injection)

Note: The `{{JS_ENV_SUBSTITUTION}}` placeholder in the template should be replaced with the actual for loop code or removed based on application_type.

## Notes
- Enables runtime environment variable injection into built assets
- Uses `envsubst` to replace placeholders with actual environment variable values
- Always processes index.html for VITE_CONTEXT_PATH
- Conditionally processes JavaScript files for standalone apps only
- Sets errexit and nounset for safer script execution
- Starts nginx in foreground mode for Docker container
- Requires gettext-base package for envsubst command
- Must be executable (chmod +x entrypoint.sh)

Files in this skill

  • SKILL.md1.4 KB
  • source.json682 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.