diff --git a/nexus/3-alpine/Dockerfile b/nexus/3-alpine/Dockerfile index 445087e..7b06063 100644 --- a/nexus/3-alpine/Dockerfile +++ b/nexus/3-alpine/Dockerfile @@ -17,6 +17,7 @@ RUN set -x \ && apk --no-cache add \ openjdk8-jre-base \ libressl \ + nss \ su-exec \ && mkdir -p "${SONATYPE_DIR}" \ && wget -qO - "https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz" \ @@ -24,13 +25,16 @@ RUN set -x \ && mv "${SONATYPE_DIR}/nexus-${NEXUS_VERSION}" "${NEXUS_HOME}" \ && adduser -S -h ${NEXUS_DATA} nexus +COPY bin/docker-entrypoint.sh / +RUN set -x \ + && chmod +x /docker-entrypoint.sh + EXPOSE 5000 8081 8443 WORKDIR "${NEXUS_HOME}" VOLUME "${NEXUS_DATA}" -COPY bin/docker-entrypoint.sh / ENTRYPOINT ["/docker-entrypoint.sh"] CMD ["bin/nexus", "run"] \ No newline at end of file