I am new to Docker, and I need help to build Corretto 17 Alpine Linux image. I have an existing Dockerfile which build Java 8 Alpine Linux image as below.
FROM alpine:3.17
# install software
RUN apk add --no-cache \
bash \
openjdk8-jre
How can I add Corretto 17 command to this Dockerfile to run my application on Corretto 17?
I found an aws doc to install Amazon Corretto 17 on Alpine Linux
below is the command that neet to insert in your docker file to install corretto 17.