-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Base the docker image on alpine directly
From the OpenJDK team: > The OpenJDK port for Alpine is not in a supported release by OpenJDK, since it is not in the mainline code base. It is only available as early access builds of OpenJDK Project Portola. See also [this comment](docker-library/openjdk#235 (comment)). So this image follows what is available from the OpenJDK project's maintainers. > > What this means is that Alpine based images are only released for early access release versions of OpenJDK. Once a particular release becomes a "General-Availability" release, the Alpine version is dropped from the "Supported Tags"; they are still available to pull, but will no longer be updated.
- Loading branch information
Showing
2 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
FROM openjdk:8-jdk-alpine | ||
FROM alpine:3.13 | ||
|
||
ENV JAVA_OPTS="" | ||
LABEL maintainer="VLINGO XOOM Team <info@vlingo.io>" | ||
|
||
ENV JAVA_HOME=/usr/lib/jvm/default-jvm/ | ||
ENV PATH=${JAVA_HOME}/bin:$PATH | ||
ENV XOOM_ENV="env" | ||
|
||
ADD ./target/xoom-schemata-*-jar-with-dependencies.jar /app.jar | ||
ADD ./target/xoom-schemata-*-jar-with-dependencies.jar /schemata/xoom-schemata.jar | ||
|
||
RUN addgroup -S xoom && adduser -S -D -s /sbin/nologin -h /schemata -G xoom xoom \ | ||
&& apk add --no-cache bash openjdk8 \ | ||
&& chown -R xoom:xoom /schemata | ||
|
||
ENTRYPOINT exec java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar $XOOM_ENV | ||
WORKDIR /schemata | ||
CMD java -jar /schemata/xoom-schemata.jar $XOOM_ENV | ||
USER xoom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters