1
0
java15-devel-container/Dockerfile

32 lines
1.1 KiB
Docker
Raw Normal View History

# Defines the tag for OBS and build script builds:
#!BuildTag: opensuse/openjdk:15
#!BuildTag: opensuse/openjdk:%%PKG_VERSION%%
#!BuildTag: opensuse/openjdk:%%PKG_VERSION%%.%RELEASE%
ARG BASE=opensuse/tumbleweed
FROM $BASE
# labelprefix=org.opensuse.openjdk
PREFIXEDLABEL org.opencontainers.image.title="Java 15 development container"
PREFIXEDLABEL org.opencontainers.image.description="Environment for Java 15 development"
PREFIXEDLABEL org.opencontainers.image.created="%BUILDTIME%"
PREFIXEDLABEL org.opencontainers.image.version="%%PKG_VERSION%%.%RELEASE%"
PREFIXEDLABEL org.openbuildservice.disturl="%DISTURL%"
PREFIXEDLABEL org.opensuse.reference="registry.opensuse.org/opensuse/openjdk:%%PKG_VERSION%%.%RELEASE%"
# Work around https://github.com/openSUSE/obs-build/issues/487
ARG RELEASE_PACKAGE=openSUSE-release-appliance-docker
ARG LIBDIR=/usr/lib64
ENV JAVA_BINDIR=$LIBDIR/jvm/java/bin
ENV JAVA_HOME=$LIBDIR/jvm/java
ENV JAVA_ROOT=$LIBDIR/jvm/java
ENV JAVA_VERSION=15
# Development packages
RUN zypper -n install --no-recommends $RELEASE_PACKAGE \
java-15-openjdk-devel maven git-core && \
zypper clean -a
CMD [ "jshell" ]