diff --git a/Dockerfile b/Dockerfile index 3687795..4a4a839 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,12 @@ -FROM quay.io/pires/docker-jre:8u191 +FROM alpine:3.10 LABEL maintainer devops@travelaudience.com -ENV NEXUS_VERSION 3.15.2-01 +# java +ENV JAVA_HOME=/usr/lib/jvm/default-jvm/jre + +# nexus +ENV NEXUS_VERSION 3.17.0-01 ENV NEXUS_DOWNLOAD_URL "https://download.sonatype.com/nexus/3" ENV NEXUS_TARBALL_URL "${NEXUS_DOWNLOAD_URL}/nexus-${NEXUS_VERSION}-unix.tar.gz" ENV NEXUS_TARBALL_ASC_URL "${NEXUS_DOWNLOAD_URL}/nexus-${NEXUS_VERSION}-unix.tar.gz.asc" @@ -14,8 +18,10 @@ ENV NEXUS_DATA /nexus-data ENV NEXUS_CONTEXT '' ENV SONATYPE_WORK ${SONATYPE_DIR}/sonatype-work +# Install prerequisites +RUN apk add --no-cache --update bash ca-certificates runit su-exec util-linux openjdk8-jre + # Install nexus -RUN apk add --no-cache --update bash ca-certificates runit su-exec util-linux RUN apk add --no-cache -t .build-deps wget gnupg openssl \ && cd /tmp \ && echo "===> Installing Nexus ${NEXUS_VERSION}..." \ @@ -32,7 +38,7 @@ RUN apk add --no-cache -t .build-deps wget gnupg openssl \ && ls -las \ && adduser -h $NEXUS_DATA -DH -s /sbin/nologin nexus \ && chown -R nexus:nexus $NEXUS_HOME \ - && rm -rf /tmp/* \ + && rm -rf /tmp/* /var/cache/apk/* \ && apk del --purge .build-deps # Configure nexus diff --git a/README.md b/README.md index 73c11ca..5f43989 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A container image for Sonatype Nexus Repository Manager OSS, based on Alpine Lin ## Current software -* Alpine Linux 3.9 -* OpenJDK JRE 8u191 -* Nexus Repository Manager OSS 3.15.2 ([release notes](https://help.sonatype.com/repomanager3/release-notes/2019-release-notes#id-2019ReleaseNotes-RepositoryManager3.15.2)) +* Alpine Linux 3.10 +* OpenJDK JRE 8u212 +* Nexus Repository Manager OSS 3.17.0 ([release notes](https://help.sonatype.com/repomanager3/release-notes/2019-release-notes#id-2019ReleaseNotes-RepositoryManager3.17.0))