Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cf0cf2f5e9 | |||
| 1302165ab2 |
+9
-13
@@ -1,7 +1,7 @@
|
|||||||
FROM alpine:3.22 AS svelte_build
|
FROM alpine:3.22 AS svelte_build
|
||||||
RUN apk add npm
|
RUN apk add npm
|
||||||
RUN adduser -Dh /home/svelte svelte
|
RUN adduser -Dh /home/svelte svelte
|
||||||
ADD frontend /home/svelte/Umbrella/frontend
|
ADD . /home/svelte/Umbrella
|
||||||
RUN chown -R svelte /home/svelte/Umbrella
|
RUN chown -R svelte /home/svelte/Umbrella
|
||||||
USER svelte
|
USER svelte
|
||||||
WORKDIR /home/svelte/Umbrella/frontend
|
WORKDIR /home/svelte/Umbrella/frontend
|
||||||
@@ -17,18 +17,14 @@ RUN gradle --no-daemon build
|
|||||||
|
|
||||||
|
|
||||||
FROM alpine
|
FROM alpine
|
||||||
RUN apk --no-cache add bash fontconfig font-opensans graphviz openjdk21-jre weasyprint \
|
RUN apk add bash fontconfig font-opensans graphviz openjdk21-jre tzdata weasyprint
|
||||||
&& adduser -D umbrella
|
RUN adduser -D umbrella
|
||||||
|
COPY --from=java_build /Umbrella/backend/build/libs/backend.jar /home/umbrella/jar/
|
||||||
|
RUN chown -R umbrella /home/umbrella
|
||||||
|
ADD https://github.com/plantuml/plantuml/releases/download/v1.2025.10/plantuml-1.2025.10.jar /home/umbrella/plantuml.jar
|
||||||
WORKDIR /home/umbrella
|
WORKDIR /home/umbrella
|
||||||
|
RUN chmod a+rx plantuml.jar && ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime
|
||||||
|
USER umbrella
|
||||||
|
RUN mkdir .config && ln -s /host/config.json .config/Umbrella.json
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
CMD java -jar jar/backend.jar
|
CMD java -jar jar/backend.jar
|
||||||
|
|
||||||
ADD https://github.com/plantuml/plantuml/releases/download/v1.2025.10/plantuml-1.2025.10.jar /home/umbrella/plantuml.jar
|
|
||||||
COPY --from=java_build /Umbrella/backend/build/libs/backend.jar /home/umbrella/jar/
|
|
||||||
RUN mkdir .config \
|
|
||||||
&& ln -s /host/config.json .config/Umbrella.json \
|
|
||||||
&& chmod a+rx plantuml.jar \
|
|
||||||
&& chown -R umbrella . \
|
|
||||||
&& ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime
|
|
||||||
USER umbrella
|
|
||||||
|
|||||||
Reference in New Issue
Block a user