twigs/Dockerfile

16 lines
521 B
Text
Raw Normal View History

2020-06-01 15:03:35 +00:00
FROM openjdk:14-jdk as builder
MAINTAINER William Brawner <me@wbrawner.com>
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
2020-06-01 15:03:35 +00:00
RUN /home/gradle/src/gradlew --console=plain --no-daemon bootJar
2020-06-01 15:03:35 +00:00
FROM openjdk:14-jdk-slim
EXPOSE 8080
2020-06-01 15:03:35 +00:00
COPY --from=builder /home/gradle/src/api/build/libs/api.jar twigs-api.jar
2021-01-27 03:57:03 +00:00
CMD /usr/local/openjdk-14/bin/java $JVM_ARGS -jar /twigs-api.jar