You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
733 B
26 lines
733 B
FROM alpine AS build |
|
RUN apk update \ |
|
&& apk add openjdk21-jre |
|
RUN apk add bash clang-extra-tools git |
|
ADD . /OpenCloudCal |
|
WORKDIR /OpenCloudCal |
|
RUN VERSION=$(clang-format --version | sed -e "s/.* //g") && sed -i "s|clangFormat(.*).style|clangFormat(\"$VERSION\").style|g" build.gradle.kts |
|
RUN ./gradlew build |
|
RUN mv *app/build/distributions/*.zip /occ.zip |
|
|
|
FROM alpine |
|
RUN apk update \ |
|
&& apk add bash 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 |
|
RUN mkdir lib/importers \ |
|
&& cp lib/*importer*jar lib/importers/ |
|
RUN adduser -S occ \ |
|
&& ln -s /data /home/occ/.config |
|
|
|
USER occ |
|
ENTRYPOINT /opt/occ/bin/de.srsoftware.cal.app |