Bring the XZH-21 backend closing delivering tree (content identical toa60ea8don verify/xzh-21, tested at 45/45 by automation) onto main, which until now held only the empty init commitd45d191. - note_history aligned to notes.version (V18), pre-save snapshot per version - unified trash: inbox wired in, category delete migrates/cleans history - planner batch tags scoped by kind, dashboard taskCounts.due same filter - RSS restore notice states old articles are not restored
14 lines
518 B
Docker
14 lines
518 B
Docker
ARG IMAGE_REGISTRY=docker.io
|
|
FROM ${IMAGE_REGISTRY}/library/maven:3.9-eclipse-temurin-21 AS build
|
|
WORKDIR /app
|
|
COPY pom.xml .
|
|
COPY src src
|
|
RUN --mount=type=cache,id=myspace-maven,target=/root/.m2,sharing=locked mvn -B -U package -DskipTests
|
|
FROM ${IMAGE_REGISTRY}/library/eclipse-temurin:21-jre
|
|
WORKDIR /app
|
|
RUN useradd --system --uid 10001 myspace && mkdir -p /data/assets && chown -R myspace /data
|
|
COPY --from=build /app/target/myspace-0.1.0.jar app.jar
|
|
USER myspace
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["java","-jar","app.jar"]
|