try to fix java install issue

This commit is contained in:
marvzhang
2020-03-05 11:59:47 +08:00
parent f96944c89d
commit be894bc219
3 changed files with 2 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ ENV CRAWLAB_IS_DOCKER Y
# install packages
RUN apt-get update \
&& apt-get install -y curl git net-tools iputils-ping ntp ntpdate python3 python3-pip nginx wget \
&& apt-get install -y curl git net-tools iputils-ping ntp ntpdate python3 python3-pip nginx wget aptitude \
&& ln -s /usr/bin/pip3 /usr/local/bin/pip \
&& ln -s /usr/bin/python3 /usr/local/bin/python

View File

@@ -28,7 +28,7 @@ ENV DEBIAN_FRONTEND noninteractive
# install packages
RUN chmod 777 /tmp \
&& apt-get update \
&& apt-get install -y curl git net-tools iputils-ping ntp ntpdate python3 python3-pip nginx wget \
&& apt-get install -y curl git net-tools iputils-ping ntp ntpdate python3 python3-pip nginx wget aptitude \
&& ln -s /usr/bin/pip3 /usr/local/bin/pip \
&& ln -s /usr/bin/python3 /usr/local/bin/python

View File

@@ -5,7 +5,6 @@ touch /tmp/install-java.lock
# install java
apt-get update
apt-get install -y aptitude
aptitude install -y default-jdk
ln -s /usr/bin/java /usr/local/bin/java