improved Dockerfile
All checks were successful
Build Docker Image / Docker-Build (push) Successful in 1m52s
Build Docker Image / Clean-Registry (push) Successful in 2s

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-01-04 23:12:40 +01:00
parent 05c6e0c5f8
commit 8a375623a2

View File

@@ -1,7 +1,7 @@
FROM alpine AS build
RUN apk update
RUN apk add openjdk21-jre
RUN apk add bash git
RUN apk add git
ADD . /OpenCloudCal
WORKDIR /OpenCloudCal
RUN ./gradlew build
@@ -9,7 +9,7 @@ RUN mv *app/build/distributions/*.zip /occ.zip
FROM alpine
RUN apk update
RUN apk add bash openjdk21-jre
RUN apk add openjdk21-jre
COPY --from=build /occ.zip /opt/occ.zip
RUN cd /opt && unzip occ.zip && mv de.srsoftware.cal.app occ && rm *.zip
WORKDIR /opt/occ