Files
MySpace/backend/Dockerfile
T
xzh e67c80f39a release(XZH-21): publish verified backend phase to main
Bring the XZH-21 backend closing delivering tree (content identical to
a60ea8d on verify/xzh-21, tested at 45/45 by automation) onto main, which
until now held only the empty init commit d45d191.

- 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
2026-11-11 20:59:09 +08:00

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"]