mirror of
https://github.com/langgenius/dify.git
synced 2026-05-20 08:46:57 +08:00
20 lines
659 B
Docker
20 lines
659 B
Docker
# difyctl container image.
|
|
#
|
|
# Build:
|
|
# docker build --build-arg VERSION=<tag> -f cli/Dockerfile -t ghcr.io/langgenius/difyctl:<tag> cli/
|
|
#
|
|
# The image installs from the published npm package, so multi-arch is handled by
|
|
# the base image (node:22-alpine ships linux/amd64 + linux/arm64) and the npm
|
|
# package contains the platform-agnostic ESM bundle plus napi-rs prebuilds for
|
|
# both targets.
|
|
|
|
FROM node:22-alpine
|
|
|
|
ARG VERSION
|
|
RUN test -n "$VERSION" || (echo "VERSION build-arg is required" >&2 && exit 1) \
|
|
&& npm install -g --no-fund --no-audit "@langgenius/difyctl@${VERSION}" \
|
|
&& npm cache clean --force
|
|
|
|
ENTRYPOINT ["difyctl"]
|
|
CMD ["--help"]
|