mirror of
https://github.com/kochetkov-ma/allure-server.git
synced 2024-11-28 08:38:44 +02:00
12 lines
540 B
Docker
12 lines
540 B
Docker
FROM gradle:jdk11 as build
|
|
COPY . .
|
|
ARG RELEASE_VERSION=${RELEASE_VERSION:-0.0.0}
|
|
RUN gradle -Pversion=docker --no-daemon -PnodeVersion=12.16.3 vaadinPrepareFrontend vaadinBuildFrontend bootJar
|
|
|
|
FROM openjdk:11-jre-slim as production
|
|
COPY --from=build /home/gradle/build/libs/allure-server-docker.jar /allure-server-docker.jar
|
|
# Set port
|
|
EXPOSE ${PORT:-8080}
|
|
# Run application
|
|
ENV JAVA_OPTS="-Xms256m -Xmx2048m"
|
|
ENTRYPOINT ["java","-jar","-XX:+UseContainerSupport", "-Dspring.profiles.active=${PROFILE:default}","/allure-server-docker.jar"] |