Skip to content

Commit aeacb4d

Browse files
authored
Merge pull request #2 from StreamingMicroservicesPlatform/java-10
Add Java 10 docker image
2 parents 3b1fb99 + 11990bd commit aeacb4d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

jdk-oracle-open/Dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
FROM debian:stretch-slim@sha256:613efd414e9818dcef858201484a94603a548a0e04fd4356e77eb758aeb16124
2+
3+
RUN set -ex; \
4+
export DEBIAN_FRONTEND=noninteractive; \
5+
runDeps=''; \
6+
buildDeps='curl ca-certificates'; \
7+
apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends; \
8+
\
9+
cd /usr/lib; \
10+
mkdir jvm; \
11+
cd jvm; \
12+
curl -SLs -o jdk.tar.gz https://download.java.net/java/GA/jdk10/10/binaries/openjdk-10_linux-x64_bin.tar.gz; \
13+
echo "c851df838a51af52517b74e3a4b251d90c54cf478a4ebed99e7285ef134c3435 jdk.tar.gz" | sha256sum -c -; \
14+
tar xvzf jdk.tar.gz; \
15+
rm jdk.tar.gz; \
16+
\
17+
rm -v jdk-10/lib/src.zip; \
18+
rm -r jdk-10/man/; \
19+
\
20+
apt-get purge -y --auto-remove $buildDeps; \
21+
rm -rf /var/lib/apt/lists/*; \
22+
rm -rf /var/log/dpkg.log /var/log/alternatives.log /var/log/apt
23+
24+
# Instead of: find /usr/lib/jvm/jdk-10/bin/ -executable -exec ln -s '{}' /usr/local/bin/
25+
ENV PATH="$PATH:/usr/lib/jvm/jdk-10/bin"

0 commit comments

Comments
 (0)