Skip to content

Commit 0765f96

Browse files
committed
fix build
1 parent f9499cb commit 0765f96

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

repository-services/isajson-ena/Dockerfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ ARG GPR_USER
99
ARG GPR_TOKEN
1010

1111
# 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+
1220
WORKDIR /app/receipt
13-
RUN echo "Contents of /app/receipt:" && ls -la && \
14-
if [ ! -f gradlew ]; then \
15-
echo "ERROR: gradlew not found in /app/receipt"; \
16-
echo "Contents of /app:" && ls -la /app; \
17-
echo "Contents of /app/receipt:" && ls -la /app/receipt; \
18-
exit 1; \
19-
fi && \
21+
RUN test -f gradlew || (echo "ERROR: gradlew not in /app/receipt. Checking /app..." && ls -la /app && exit 1) && \
2022
sed -i 's/\r$//' gradlew && \
2123
chmod +x gradlew && \
2224
./gradlew build -x test -x spotlessApply -x spotlessJavaCheck --info --stacktrace && \

0 commit comments

Comments
 (0)