forked from meissa/ModeratorElection
Take local files
This commit is contained in:
parent
06276fad8c
commit
2f59536c54
1 changed files with 6 additions and 4 deletions
|
@ -3,9 +3,8 @@ FROM openjdk:22-jdk-slim as build-jar-stage
|
|||
|
||||
RUN \
|
||||
--mount=type=cache,target=/var/cache/apt \
|
||||
apt-get update && apt-get -qqy upgrade &&\
|
||||
apt-get -qqy install git &&\
|
||||
git clone --single-branch --branch main https://repo.prod.meissa.de/meissa/ModeratorElection.git /usr/local/src/ModeratorElection
|
||||
apt-get update && apt-get -qqy upgrade
|
||||
ADD ./ /usr/local/src/ModeratorElection
|
||||
WORKDIR /usr/local/src/ModeratorElection/
|
||||
RUN ./gradlew build -Pvaadin.productionMode
|
||||
|
||||
|
@ -16,11 +15,14 @@ WORKDIR /usr/local/src/ModeratorElection/build/libs/
|
|||
RUN chmod 0740 ./ModeratorElection.jar
|
||||
ENTRYPOINT ["java", "-jar", "./ModeratorElection.jar"]
|
||||
|
||||
FROM build-jar-stage AS ci-image-stage
|
||||
RUN chmod 0740 ./ModeratorElection.jar
|
||||
ENTRYPOINT ["java", "-jar", "./ModeratorElection.jar"]
|
||||
|
||||
#build-native-stage
|
||||
FROM ubuntu:latest as build-native-stage
|
||||
|
||||
ADD resources /tmp
|
||||
ADD image/resources /tmp
|
||||
RUN \
|
||||
--mount=type=cache,target=/var/cache/apt \
|
||||
/tmp/install.sh
|
Loading…
Reference in a new issue