reverted to initial ant-based image
This commit is contained in:
parent
bd28bcf4b2
commit
2512068958
29
Dockerfile
29
Dockerfile
@ -1,30 +1,5 @@
|
|||||||
# adapted from frekele/ant
|
FROM frekele/ant:1.10.3-jdk8
|
||||||
FROM frekele/java:jdk8
|
|
||||||
|
|
||||||
ENV ANT_VERSION=1.10.3
|
RUN cd /tmp && wget --no-check-certificate --no-cookies https://repo1.maven.org/maven2/com/jcraft/jsch/0.1.55/jsch-0.1.55.jar \
|
||||||
ENV ANT_HOME=/opt/ant
|
|
||||||
|
|
||||||
# change to tmp folder
|
|
||||||
WORKDIR /tmp
|
|
||||||
|
|
||||||
# Download and extract apache ant to opt folder
|
|
||||||
RUN wget --no-check-certificate --no-cookies http://archive.apache.org/dist/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz \
|
|
||||||
&& wget --no-check-certificate --no-cookies http://archive.apache.org/dist/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz.sha512 \
|
|
||||||
&& echo "$(cat apache-ant-${ANT_VERSION}-bin.tar.gz.sha512) apache-ant-${ANT_VERSION}-bin.tar.gz" | sha512sum -c \
|
|
||||||
&& tar -zvxf apache-ant-${ANT_VERSION}-bin.tar.gz -C /opt/ \
|
|
||||||
&& ln -s /opt/apache-ant-${ANT_VERSION} /opt/ant \
|
|
||||||
&& rm -f apache-ant-${ANT_VERSION}-bin.tar.gz \
|
|
||||||
&& rm -f apache-ant-${ANT_VERSION}-bin.tar.gz.sha512
|
|
||||||
|
|
||||||
RUN wget --no-check-certificate --no-cookies https://repo1.maven.org/maven2/com/jcraft/jsch/0.1.55/jsch-0.1.55.jar \
|
|
||||||
&& mv jsch-0.1.55.jar /opt/ant/lib
|
&& mv jsch-0.1.55.jar /opt/ant/lib
|
||||||
|
|
||||||
# add executables to path
|
|
||||||
RUN update-alternatives --install "/usr/bin/ant" "ant" "/opt/ant/bin/ant" 1 && \
|
|
||||||
update-alternatives --set "ant" "/opt/ant/bin/ant"
|
|
||||||
|
|
||||||
# Add the files
|
|
||||||
# ADD rootfs /
|
|
||||||
|
|
||||||
# change to root folder
|
|
||||||
WORKDIR /root
|
|
||||||
Loading…
Reference in New Issue
Block a user