Agent Skillsnixopus/nixopus › gleam-deploy

gleam-deploy

GitHub

提供Gleam应用的构建与Docker部署指南,涵盖版本管理、镜像优化及Dockerfile模板。

api/skills/gleam-deploy/SKILL.md nixopus/nixopus

Trigger Scenarios

检测到gleam.toml文件 需要部署Gleam项目

Install

npx skills add nixopus/nixopus --skill gleam-deploy -g -y
More Options

Non-standard path

npx skills add https://github.com/nixopus/nixopus/tree/master/api/skills/gleam-deploy -g -y

Use without installing

npx skills use nixopus/nixopus@gleam-deploy

指定 Agent (Claude Code)

npx skills add nixopus/nixopus --skill gleam-deploy -a claude-code -g -y

安装 repo 全部 skill

npx skills add nixopus/nixopus --all -g -y

预览 repo 内 skill

npx skills add nixopus/nixopus --list

SKILL.md

Frontmatter
{
    "name": "gleam-deploy",
    "metadata": {
        "version": "1.0"
    },
    "description": "Build and deploy Gleam applications — erlang-shipment, version detection, and Dockerfile patterns. Use when deploying a Gleam project, or when gleam.toml is detected."
}

Gleam Deployment

Detection

Project is Gleam if gleam.toml exists in the root.

Versions

Gleam and Erlang default to latest. Override via mise.toml or .tool-versions.

Erlang available in both build and runtime; Gleam only during build.

Build

Build Process

  1. Install Gleam and Erlang
  2. Export: gleam export erlang-shipment
  3. Output: ./build/erlang-shipment/

Start Command

./build/erlang-shipment/entrypoint.sh run

Source tree not included in final container by default.

Install Stage Optimization

Copy in order:

  • gleam.toml, manifest.toml (if present)
  • src/ (Gleam source)
  • test/ (optional)

Base Images

Stage Image
Build ghcr.io/gleam-lang/gleam:latest or custom
Runtime erlang:27-slim

Dockerfile Patterns

Erlang Shipment (minimal runtime)

FROM ghcr.io/gleam-lang/gleam:latest AS build
WORKDIR /app
COPY gleam.toml manifest.toml* ./
COPY src src
RUN gleam export erlang-shipment

FROM erlang:27-slim
WORKDIR /app
COPY --from=build /app/build/erlang-shipment ./
EXPOSE 8080
CMD ["./entrypoint.sh", "run"]

With source included

FROM ghcr.io/gleam-lang/gleam:latest AS build
WORKDIR /app
COPY . .
RUN gleam export erlang-shipment

FROM erlang:27-slim
WORKDIR /app
COPY --from=build /app/build/erlang-shipment ./
COPY --from=build /app/src ./src
COPY --from=build /app/gleam.toml ./
CMD ["./entrypoint.sh", "run"]

Version History

  • cf05d97 Current 2026-08-20 14:52

Same Skill Collection

api/skills/api-catalog/SKILL.md
api/skills/caddyfile-generation/SKILL.md
api/skills/compose-setup/SKILL.md
api/skills/container-resource-tuning/SKILL.md
api/skills/cpp-deploy/SKILL.md
api/skills/database-migration/SKILL.md
api/skills/deno-deploy/SKILL.md
api/skills/deploy-delegation/SKILL.md
api/skills/deploy-flow/SKILL.md
api/skills/deployment-analysis/SKILL.md
api/skills/diagnostic-workflow/SKILL.md
api/skills/dockerfile-generation/SKILL.md
api/skills/dockerignore-generation/SKILL.md
api/skills/domain-attachment/SKILL.md
api/skills/domain-tls-routing/SKILL.md
api/skills/dotnet-deploy/SKILL.md
api/skills/elixir-deploy/SKILL.md
api/skills/failure-diagnosis/SKILL.md
api/skills/github-onboarding/SKILL.md
api/skills/github-workflow/SKILL.md
api/skills/go-deploy/SKILL.md
api/skills/incident-response/SKILL.md
api/skills/java-deploy/SKILL.md
api/skills/machine-ops/SKILL.md
api/skills/mcp-integrations/SKILL.md
api/skills/monorepo-strategy/SKILL.md
api/skills/nixopus-docs/SKILL.md
api/skills/node-deploy/SKILL.md
api/skills/onboarding/SKILL.md
api/skills/php-deploy/SKILL.md
api/skills/post-deploy-verification/SKILL.md
api/skills/pre-deploy-checklist/SKILL.md
api/skills/python-deploy/SKILL.md
api/skills/rollback-strategy/SKILL.md
api/skills/ruby-deploy/SKILL.md
api/skills/rust-deploy/SKILL.md
api/skills/self-heal/SKILL.md
api/skills/shell-deploy/SKILL.md
api/skills/static-deploy/SKILL.md

Metadata

Files
0
Version
cf05d97
Hash
5eebcdd6
Indexed
2026-08-20 14:52

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-29 23:16
浙ICP备14020137号-1 $방문자$