1
- FROM codeworksio/ubuntu:18.04-20180203
1
+ FROM codeworksio/ubuntu:18.04-20180210
2
2
3
3
# SEE: https://github.com/docker-library/openjdk/blob/master/8-jdk/Dockerfile
4
4
@@ -9,21 +9,21 @@ ENV JAVA_VERSION="8u151" \
9
9
CA_CERTIFICATES_JAVA_VERSION="20170930" \
10
10
JAVA_HOME="/java-home"
11
11
12
- RUN set -ex \
12
+ RUN set -ex; \
13
13
\
14
- && if [ -n "$APT_PROXY" ]; then echo "Acquire::http { Proxy \" http://${APT_PROXY}\" ; };" > /etc/apt/apt.conf.d/00proxy; fi \
15
- && if [ -n "$APT_PROXY_SSL" ]; then echo "Acquire::https { Proxy \" https://${APT_PROXY_SSL}\" ; };" > /etc/apt/apt.conf.d/00proxy; fi \
16
- && apt-get --yes update \
17
- && apt-get --yes install \
14
+ if [ -n "$APT_PROXY" ]; then echo "Acquire::http { Proxy \" http://${APT_PROXY}\" ; };" > /etc/apt/apt.conf.d/00proxy; fi; \
15
+ if [ -n "$APT_PROXY_SSL" ]; then echo "Acquire::https { Proxy \" https://${APT_PROXY_SSL}\" ; };" > /etc/apt/apt.conf.d/00proxy; fi; \
16
+ apt-get --yes update; \
17
+ apt-get --yes install \
18
18
openjdk-8-jdk=$JAVA_UBUNTU_VERSION \
19
19
ca-certificates-java=$CA_CERTIFICATES_JAVA_VERSION \
20
+ ; \
21
+ ln -sT "/usr/lib/jvm/java-8-openjdk-$(dpkg --print-architecture)" $JAVA_HOME; \
22
+ update-alternatives --get-selections | awk -v home="$(readlink -f $JAVA_HOME)" 'index($3, home) == 1 { $2 = "manual"; print | "update-alternatives --set-selections" }' ; \
23
+ /var/lib/dpkg/info/ca-certificates-java.postinst configure; \
20
24
\
21
- && ln -sT "/usr/lib/jvm/java-8-openjdk-$(dpkg --print-architecture)" $JAVA_HOME \
22
- && update-alternatives --get-selections | awk -v home="$(readlink -f $JAVA_HOME)" 'index($3, home) == 1 { $2 = "manual"; print | "update-alternatives --set-selections" }' \
23
- && /var/lib/dpkg/info/ca-certificates-java.postinst configure \
24
- \
25
- && rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/* \
26
- && rm -f /etc/apt/apt.conf.d/00proxy
25
+ rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/*; \
26
+ rm -f /etc/apt/apt.conf.d/00proxy
27
27
28
28
# ## METADATA ###################################################################
29
29
0 commit comments