Skip to content

Commit 21f20d2

Browse files
committed
fix build
1 parent 0765f96 commit 21f20d2

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

repository-services/isajson-ena/Dockerfile

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,24 @@
22
FROM gradle:jdk17 AS builder
33

44
WORKDIR /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

810
ARG GPR_USER
911
ARG 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-
2014
WORKDIR /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 && \

0 commit comments

Comments
 (0)