File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed
repository-services/isajson-ena Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change 22FROM gradle:jdk17 AS builder
33
44WORKDIR /app
5- # Copy everything from context (the repository-services folder)
6- COPY . .
5+ # Copy receipt directory first (dependency)
6+ COPY receipt /app/receipt
7+ # Copy isajson-ena directory
8+ COPY isajson-ena /app/isajson-ena
79
810ARG GPR_USER
911ARG GPR_TOKEN
1012
1113# Build receipt first (dependency)
12- # Verify receipt directory structure
13- RUN echo "=== Directory structure ===" && \
14- ls -la /app && \
15- echo "=== /app/receipt contents ===" && \
16- (ls -la /app/receipt 2>&1 || echo "Directory not found or empty" ) && \
17- echo "=== Finding gradlew ===" && \
18- find /app -name "gradlew" -type f 2>/dev/null | head -5
19-
2014WORKDIR /app/receipt
21- RUN test -f gradlew || (echo "ERROR: gradlew not in /app/receipt. Checking /app..." && ls -la /app && exit 1) && \
15+ RUN if [ ! -f gradlew ]; then \
16+ echo "ERROR: gradlew not found in /app/receipt" ; \
17+ echo "Checking if receipt files are in a different location..." ; \
18+ find /app -name "gradlew" -type f 2>/dev/null; \
19+ echo "Contents of /app/receipt:" ; \
20+ ls -la /app/receipt 2>&1 || echo "Directory empty or doesn't exist" ; \
21+ exit 1; \
22+ fi && \
2223 sed -i 's/\r $//' gradlew && \
2324 chmod +x gradlew && \
2425 ./gradlew build -x test -x spotlessApply -x spotlessJavaCheck --info --stacktrace && \
You can’t perform that action at this time.
0 commit comments