2020-06-01 15:03:35 +00:00
|
|
|
FROM openjdk:14-jdk as builder
|
2020-02-13 03:15:43 +00:00
|
|
|
MAINTAINER William Brawner <me@wbrawner.com>
|
2019-09-24 16:28:30 +00:00
|
|
|
|
2021-11-19 03:15:42 +00:00
|
|
|
RUN groupadd --system --gid 1000 gradle \
|
|
|
|
&& useradd --system --gid gradle --uid 1000 --shell /bin/bash --create-home gradle
|
|
|
|
|
|
|
|
COPY --chown=gradle:gradle . /home/gradle/src
|
|
|
|
WORKDIR /home/gradle/src
|
|
|
|
RUN /home/gradle/src/gradlew --console=plain --no-daemon shadowJar
|
|
|
|
|
2021-06-15 00:06:47 +00:00
|
|
|
FROM adoptopenjdk:openj9
|
2019-09-24 16:28:30 +00:00
|
|
|
EXPOSE 8080
|
2021-12-18 14:44:01 +00:00
|
|
|
RUN groupadd --system --gid 1000 twigs \
|
|
|
|
&& useradd --system --gid twigs --uid 1000 --create-home twigs
|
|
|
|
COPY --from=builder --chown=twigs:twigs /home/gradle/src/app/build/libs/twigs.jar twigs.jar
|
|
|
|
USER twigs
|
2021-08-12 21:22:06 +00:00
|
|
|
CMD /opt/java/openjdk/bin/java $JVM_ARGS -jar /twigs.jar
|