我找到了一个awsdoc来在Alpine Linux上安装Amazon Corretto 17 下面是需要插入到docker文件中以安装corrett...
这里使用Alpine Linux(3.9) 安装OpenJDK 1.8及部分常用工具并修改时区: 文末提供Dockerfile 拉取alpine镜像 # docker pull alpine 运行并进入容器 # docker run -itd --name alpine-java alpine # docker exec -it alpine-java sh 安装OpenJDK等 # apk update # apk add openjdk8 busybox tzdata curl 修改...
OpenJDK Java 17 docker image Docker Hub meyay(Metin Y.)June 9, 2022, 5:19pm6 The downloaded java archive is not compatible with alpine out of the box, as alpine usesmuslinstead ofglibcas itsc library. If you insist on using openjdk from Oracles website, you will need to install glibc...
#5.更新Alpine的软件源为阿里云,因为从默认官源拉取实在太慢了 RUN echo http://mirrors.aliyun.com/alpine/v3.10/main/ > /etc/apk/repositories && \ echo http://mirrors.aliyun.com/alpine/v3.10/community/ >> /etc/apk/repositories RUN apk update && apk upgrade #6.运行指定的命令 ## Alpine l...
docker run -it --rm anapsix/alpine-java java -version Disclaimer By using Dockerfiles contained in this repo and/or container images derived from them, you are agreeing to any and all applicable license agreements & export rules related to unlimited strength crypto, etc.....
golang 镜像就属于第一种情况,golang:alpine提供了基于 Alpine 构建的Go工具链。 构建Go 程序可以使用下面的Dockerfile: 代码语言:javascript 复制 FROMgolang:alpineCOPYhello.go.RUNgo build hello.goFROMalpineCOPY--from=0/go/hello.CMD["./hello"] ...
FROM ghcr.io/kevin-lee/alpine-node:main ARG JAVA_VERSION=17 RUN echo "https://apk.bell-sw.com/main" | tee -a /etc/apk/repositories \ && wget -P /etc/apk/keys/ https://apk.bell-sw.com/info@bell-sw.com-5fea454e.rsa.pub \ && apk add "bellsoft-java${JAVA_VERSION}" RUN jav...
alpine3.8 glibc2.29-r0 java 88u202b08 MAJOR TAGGING UPDATE To allow selection of specific Java version, amajor retagging is taking place. Old tags will remain for compatibility sake, but are no longer documented.:8,:7and:latestare all valid, but are not "locked" to any specific Java ver...
ENV JAVA_HOME /usr/lib/jvm/default-jvm ENV PATH ${PATH}:${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin ENV JAVA_VERSION 8u71 ENV JAVA_ALPINE_VERSION 8.171.11-r0 RUN set -x \ \ && apk add --no-cache \ \ openjdk8-jre="$JAVA_ALPINE_VERSION"创建镜像1...
docker pull amazoncorretto:17-alpine-jdk docker run -it amazoncorretto:17-alpine-jdk /bin/shBuild a Docker Image with Amazon Corretto 17 Run the following command to build an image that uses Amazon Corretto 17. docker build -t amazon-corretto-17 github.com/corretto/corretto-docker#main:17/...