Created
October 15, 2017 15:08
-
-
Save bassemZohdy/60a210b48426ff3d8bb13b81f514adbb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine | |
LABEL maintainer="[email protected]" | |
ARG JAVA_VERSION=8 | |
ENV LANG C.UTF-8 | |
ENV JAVA_HOME /usr/lib/jvm/default-jvm | |
ENV PATH $PATH:/usr/lib/jvm/default-jvm/jre/bin:/usr/lib/jvm/default-jvm/bin | |
RUN apk update --no-cache && apk add --no-cache bash openjdk$JAVA_VERSION | |
ADD https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-cli/2.0.0.BUILD-SNAPSHOT/spring-boot-cli-2.0.0.BUILD-20171013.160946-30-bin.tar.gz /opt/spring/ | |
WORKDIR /opt/spring/ | |
RUN tar xvf spring-boot-cli-2.0.0.BUILD-20171013.160946-30-bin.tar.gz | |
ENV PATH=/opt/spring/spring-2.0.0.BUILD-SNAPSHOT/bin:$PATH | |
RUN spring install org.springframework.cloud:spring-cloud-cli:1.3.1.RELEASE | |
CMD /bin/sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment