Skip to content

Commit

Permalink
- [skip ci] update jre version to 17 in docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
rathnapandi committed Oct 25, 2024
1 parent 2820a8f commit 42e9bfb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
FROM eclipse-temurin:11-jre-alpine as base
FROM eclipse-temurin:17-jre-alpine AS base
ENV APP_HOME=/opt/apim-cli
ENV APP_USER=axway
ARG APIM_CLI_ARCHIVE
ENV APIM_CLI_ARCHIVE=${APIM_CLI_ARCHIVE:-axway-apimcli-1.12.1.tar.gz}
COPY $APIM_CLI_ARCHIVE /
RUN apk add --no-cache tar
RUN addgroup $APP_USER && adduser --system $APP_USER --ingroup $APP_USER
RUN mkdir $APP_HOME && tar -xvzf $APIM_CLI_ARCHIVE -C $APP_HOME --strip-components 1 && rm /$APIM_CLI_ARCHIVE
RUN "apk add --no-cache tar" \
&& "addgroup $APP_USER" \
&& "adduser --system $APP_USER --ingroup $APP_USER" \
&& "mkdir $APP_HOME" \
&& "tar -xvzf $APIM_CLI_ARCHIVE -C $APP_HOME --strip-components 1" \
&& "rm /$APIM_CLI_ARCHIVE"
FROM eclipse-temurin:11-jre-alpine
USER $APP_USER
ENV AXWAY_APIM_CLI_HOME $APP_HOME
Expand Down

0 comments on commit 42e9bfb

Please sign in to comment.