Note: this is the "per-architecture" repository for the riscv64 builds of https://hub.docker.com/_/dart -- for more information, see https://github.com/docker-library/official-images#architectures-other-than-amd64 and https://github.com/docker-library/faq#an-images-source-changed-in-git-now-what.
Maintained by:
The Dart Docker Team
Where to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Dockerfile linkshttps://github.com/dart-lang/dart-docker/blob/3452d6c871bad5bcafdb8211b50027b8eb7b22d1/stable/trixie/Dockerfile
https://github.com/dart-lang/dart-docker/blob/3452d6c871bad5bcafdb8211b50027b8eb7b22d1/beta/trixie/Dockerfile
Where to file issues:
https://github.com/dart-lang/dart-docker/issues?q=
Supported architectures: (https://github.com/docker-library/official-images#architectures-other-than-amd64)
https://hub.docker.com/r/amd64/dart/, https://hub.docker.com/r/arm32v7/dart/, https://hub.docker.com/r/arm64v8/dart/, https://hub.docker.com/r/riscv64/dart/
Published image artifact details:
https://github.com/docker-library/repo-info/blob/master/repos/dart (https://github.com/docker-library/repo-info/commits/master/repos/dart)
(image metadata, transfer size, etc)
Image updates:
https://github.com/docker-library/official-images/issues?q=label%3Alibrary%2Fdart
https://github.com/docker-library/official-images/blob/master/library/dart (https://github.com/docker-library/official-images/commits/master/library/dart)
Source of this description:
https://github.com/docker-library/docs/tree/master/dart (https://github.com/docker-library/docs/commits/master/dart)
Dart is an approachable, portable, and productive language for high-quality apps on any platform.
Its goal is to offer the most productive programming language for multi-platform development, paired with a flexible execution runtime platform for app frameworks, and support for full-stack development. For more details, see [***]
By utilizing Dart's support for ahead-of-time (AOT) compilation to executables, you can create very small runtime images (~10 MB).
We recommend using small runtime images that leverage Dart's support for ahead-of-time (AOT) compilation to executables. This enables creating small runtime images (~10 MB).
After installing the Dart SDK, version 2.14 or later, use the dart command to create a new server app:
shell$ dart create -t server-shelf myserver
If you have Docker Desktop installed, you can build and run on your machine with the docker command:
shell$ docker build -t dart-server . $ docker run -it --rm -p 8080:8080 --name myserver dart-server
When finished, you can stop the container using the name you provided:
shell$ docker kill myserver
DockerfileThe Dockerfile created by the dart tool performs two steps:
Using the Dart SDK in the dart:stable image, compiles your server (bin/server.dart) to an executable (server).
Assembles the runtime image by combining the compiled server with the Dart VM runtime and it's needed dependencies located in /runtime/.
Dockerfile# Specify the Dart SDK base image version using dart:<version> (ex: dart:3.10) FROM dart:stable AS build # Resolve app dependencies. WORKDIR /app COPY pubspec.* ./ RUN dart pub get # Copy app source code and AOT compile it. COPY . . # Ensure packages are still up-to-date if anything has changed RUN dart pub get --offline RUN dart build cli --target bin/server.dart -o output # Build minimal serving image from AOT-compiled `/server` and required system # libraries and configuration files stored in `/runtime/` from the build stage. FROM scratch COPY --from=build /runtime/ / COPY --from=build /app/output/bundle/ /app/ # Start server. EXPOSE 8080 CMD ["/app/bin/server"]
.dockerignoreAdditionally it creates a recommended .dockerignore file, which enumarates files that should be omitted from the built Docker image:
text.dockerignore Dockerfile build/ .dart_tool/ .git/ .github/ .gitignore .packages
--
Maintained with ❤️ by the Dart team.
View https://github.com/dart-lang/sdk/blob/master/LICENSE for the software contained in this image.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in https://github.com/docker-library/repo-info/tree/master/repos/dart.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
不支持 push
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务