This commit is contained in:
병준 박 2019-05-12 14:55:53 +09:00
parent 908b046034
commit def1064c3f

View File

@ -17,6 +17,7 @@ RUN set -x \
&& apk --no-cache add \ && apk --no-cache add \
openjdk8-jre-base \ openjdk8-jre-base \
libressl \ libressl \
nss \
su-exec \ su-exec \
&& mkdir -p "${SONATYPE_DIR}" \ && mkdir -p "${SONATYPE_DIR}" \
&& wget -qO - "https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz" \ && 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}" \ && mv "${SONATYPE_DIR}/nexus-${NEXUS_VERSION}" "${NEXUS_HOME}" \
&& adduser -S -h ${NEXUS_DATA} nexus && adduser -S -h ${NEXUS_DATA} nexus
COPY bin/docker-entrypoint.sh /
RUN set -x \
&& chmod +x /docker-entrypoint.sh
EXPOSE 5000 8081 8443 EXPOSE 5000 8081 8443
WORKDIR "${NEXUS_HOME}" WORKDIR "${NEXUS_HOME}"
VOLUME "${NEXUS_DATA}" VOLUME "${NEXUS_DATA}"
COPY bin/docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"] ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["bin/nexus", "run"] CMD ["bin/nexus", "run"]