Compare commits
4 Commits
feature/fa
...
docker-opt
| Author | SHA1 | Date | |
|---|---|---|---|
| a321c813de | |||
| fda40d72f8 | |||
| 2375746d91 | |||
| 3e71ecc6cb |
22
Dockerfile
22
Dockerfile
@@ -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 . /home/svelte/Umbrella
|
ADD frontend /home/svelte/Umbrella/frontend
|
||||||
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,14 +17,18 @@ RUN gradle --no-daemon build
|
|||||||
|
|
||||||
|
|
||||||
FROM alpine
|
FROM alpine
|
||||||
RUN apk add bash fontconfig font-opensans graphviz openjdk21-jre weasyprint
|
RUN apk --no-cache add bash fontconfig font-opensans graphviz openjdk21-jre weasyprint \
|
||||||
RUN adduser -D umbrella
|
&& 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
|
|
||||||
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