fix: correct Dockerfile frontend build output path
Vite's outDir is '../src/main/resources/static' (relative to ui/), which resolves to /src/main/resources/static/ in the Docker build. The COPY was looking at /ui/dist/ which doesn't exist. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,7 @@ COPY .mvn/ .mvn/
|
||||
COPY mvnw pom.xml ./
|
||||
RUN --mount=type=cache,target=/root/.m2/repository ./mvnw dependency:go-offline -B
|
||||
COPY src/ src/
|
||||
COPY --from=frontend /ui/dist/ src/main/resources/static/
|
||||
COPY --from=frontend /src/main/resources/static/ src/main/resources/static/
|
||||
RUN --mount=type=cache,target=/root/.m2/repository ./mvnw package -DskipTests -B
|
||||
|
||||
FROM eclipse-temurin:21-jre-alpine
|
||||
|
||||
Reference in New Issue
Block a user