Commit d48783af authored by j.hoerdt's avatar j.hoerdt
Browse files

chmod +x before running gradlew

COPY actually copies file attributes, which is why docker build succeeded on my machine
?? not really understanding this behaviour as permissions are normally not part of a code repository
there is also no --chmod option to COPY
parent fddb9a49
......@@ -4,7 +4,7 @@ WORKDIR /root/sensor2graph
# download gradle:
COPY gradlew .
COPY gradle/ ./gradle
RUN ./gradlew
RUN chmod +x gradlew && ./gradlew
# download dependencies, would be nice to have.
#COPY build.gradle .
......@@ -12,7 +12,7 @@ RUN ./gradlew
# produce fat jar
COPY . .
RUN ./gradlew jar
RUN chmod +x gradlew && ./gradlew jar
FROM adoptopenjdk:15-jre
RUN apt update && apt install -y tar zstd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment