forked from beevelop/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (35 loc) · 1.72 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM beevelop/base
ARG BUILD_DATE
ARG BUILD_VERSION
ARG VCS_REF
LABEL maintainer="Maik Hummel <[email protected]>" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.version=$BUILD_VERSION \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.schema-version="1.0" \
org.label-schema.vcs-url="https://github.com/beevelop/docker-java.git" \
org.label-schema.name="beevelop/java" \
org.label-schema.vendor="Maik Hummel (beevelop)" \
org.label-schema.description="Simple Java Docker image (used as base image)" \
org.label-schema.url="https://beevelop.com/" \
org.label-schema.license="MIT" \
org.opencontainers.image.title="beevelop/java" \
org.opencontainers.image.description="Simple Java Docker image (used as base image)" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.authors="Maik Hummel (beevelop)" \
org.opencontainers.image.vendor="Maik Hummel (beevelop)" \
org.opencontainers.image.url="https://github.com/beevelop/docker-java" \
org.opencontainers.image.documentation="https://github.com/beevelop/docker-java/blob/master/README.md" \
org.opencontainers.image.source="https://github.com/beevelop/docker-java.git"
# required to use add-apt-repository
RUN buildDeps='software-properties-common'; \
set -x && \
apt-get update && apt-get install -y $buildDeps --no-install-recommends && \
add-apt-repository ppa:openjdk-r/ppa -y && \
apt-get update -y && \
apt-get install -y openjdk-8-jdk && \
java -version && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
apt-get purge -y --auto-remove $buildDeps && \
apt-get autoremove -y && apt-get clean
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64