Haxe是一种现代、高级、静态类型的编程语言,支持多种编译目标。
注意
注意:这是https://hub.docker.com/_/haxe的`arm32v7`架构构建的"per-architecture"仓库——更多信息,请参见官方镜像文档中的“除amd64之外的架构?”https://github.com/docker-library/official-images#architectures-other-than-amd64以及官方镜像FAQ中的“镜像源在Git中已更改,现在该怎么办?”https://github.com/docker-library/faq#an-images-source-changed-in-git-now-what。
快速参考
-
维护者:
https://github.com/HaxeFoundation/docker-library-haxe -
获取帮助的途径:
https://dockr.ly/comm-slack、Server Fault、https://unix.stackexchange.com/help/on-topic或https://stackoverflow.com/help/on-topic
支持的标签及对应的Dockerfile链接
(参见FAQ中的“‘Shared’和‘Simple’标签有什么区别?”https://github.com/docker-library/faq#whats-the-difference-between-shared-and-simple-tags。)
Simple Tags
-
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.3/bookworm/Dockerfile
-
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.3/bullseye/Dockerfile
-
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/5.0/bookworm/Dockerfile
-
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/5.0/bullseye/Dockerfile
-
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.2/bookworm/Dockerfile
-
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.2/bullseye/Dockerfile
-
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.1/bullseye/Dockerfile
-
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.0/bullseye/Dockerfile
Shared Tags
-
4.3.7,4.3,latest:- https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.3/bookworm/Dockerfile
-
5.0.0-preview.1,5.0.0,5.0:- https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/5.0/bookworm/Dockerfile
-
4.2.5,4.2:- https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.2/bookworm/Dockerfile
-
4.1.5,4.1:- https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.1/bullseye/Dockerfile
-
4.0.5,4.0:- https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.0/bullseye/Dockerfile
快速参考(续)
-
提交issue的地址:
https://github.com/HaxeFoundation/docker-library-haxe/issues?q= -
支持的架构:(https://github.com/docker-library/official-images#architectures-other-than-amd64)
https://hub.docker.com/r/amd64/haxe/, https://hub.docker.com/r/arm32v7/haxe/, https://hub.docker.com/r/arm64v8/haxe/, https://hub.docker.com/r/winamd64/haxe/ -
已发布镜像工件详情:
https://github.com/docker-library/repo-info/blob/master/repos/haxe (https://github.com/docker-library/repo-info/commits/master/repos/haxe)
(镜像元数据、传输大小等) -
镜像更新:
https://github.com/docker-library/official-images/issues?q=label%3Alibrary%2Fhaxe
https://github.com/docker-library/official-images/blob/master/library/haxe (https://github.com/docker-library/official-images/commits/master/library/haxe) -
本描述的来源:
https://github.com/docker-library/docs/tree/master/haxe (https://github.com/docker-library/docs/commits/master/haxe)
什么是Haxe?
Haxe是一个开源工具包,基于现代、高级、严格类型的编程语言,包含交叉编译器、完整的跨平台标准库以及访问各平台原生功能的方式。
Haxe编译器可以输出多种源代码和二进制文件。从Haxe 3.4.0-rc.1开始,Haxe编译器可以 targeting JavaScript、Java、C#、C++、Python、PHP、Flash SWF、ActionScript 3、Lua和Neko。
关于此镜像
此镜像包含一个最小的Haxe工具包:
haxe编译器及其标准库haxelib库管理器neko虚拟机
如何使用此镜像
最直接的使用方式是将Haxe容器同时用作构建和运行环境。在Dockerfile中,按以下方式编写可以编译并运行项目:
dockerfileFROM docker.xuanyuan.run/arm32v7/haxe:3.4 RUN mkdir -p /usr/src/app WORKDIR /usr/src/app # 安装依赖 COPY *.hxml /usr/src/app/ RUN yes | haxelib install all # 编译项目 COPY . /usr/src/app RUN haxe build.hxml # 容器启动时运行输出 CMD ["neko", "Main.n"]
然后,构建并运行Docker镜像:
console$ docker build -t my-haxe-app . $ docker run -it --rm --name my-running-app my-haxe-app
使用onbuild变体
有onbuild变体包含多个ONBUILD触发器,执行上述Dockerfile中的所有步骤,但没有运行编译输出的CMD指令。
使用arm32v7/haxe:3.4-onbuild重写上述Dockerfile:
dockerfileFROM docker.xuanyuan.run/arm32v7/haxe:3.4-onbuild # 容器启动时运行输出 CMD ["neko", "Main.n"]
onbuild变体假设主编译hxml文件名为build.hxml。要使用其他hxml文件,在构建时设置BUILD_HXML构建参数:
console$ docker build -t my-haxe-app --build-arg BUILD_HXML=compile.hxml .
许可
查看此镜像中包含的软件的许可信息。
与所有Docker镜像一样,这些镜像可能还包含其他软件,可能受其他许可(如基础发行版中的Bash等,以及包含的主要软件的任何直接或间接依赖项)。
一些能够自动检测到的额外许可信息可能位于https://github.com/docker-library/repo-info/tree/master/repos/haxe中。
对于任何预构建镜像的使用,镜像用户有责任确保对本镜像的任何使用都符合其中包含的所有软件的相关许可。
arm32v7 命名空间的其他可用镜像:
arm32v7/python
arm32v7/openjdk
arm32v7/eclipse-temurin
arm32v7/opensuse
arm32v7/postgres
arm32v7/golang
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务