Agent Skills
› nixopus/nixopus
› gleam-deploy
gleam-deploy
GitHub提供Gleam应用的构建与Docker部署指南,涵盖版本管理、镜像优化及Dockerfile模板。
Trigger Scenarios
检测到gleam.toml文件
需要部署Gleam项目
Install
npx skills add nixopus/nixopus --skill gleam-deploy -g -y
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
- Install Gleam and Erlang
- Export:
gleam export erlang-shipment - 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


