From e99d0808bfd2a30370489ad3548643a76b073bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sel=C3=A7uk=20Usta?= Date: Fri, 15 Feb 2019 19:22:48 +0300 Subject: [PATCH] Fixing ./gradlew: Permission denied problem on Dockerfile (#146) --- src/adservice/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/adservice/Dockerfile b/src/adservice/Dockerfile index f6810c8..34c6e33 100644 --- a/src/adservice/Dockerfile +++ b/src/adservice/Dockerfile @@ -4,16 +4,18 @@ WORKDIR /app COPY ["build.gradle", "gradlew", "./"] COPY gradle gradle +RUN chmod +x gradlew RUN ./gradlew downloadRepos COPY . . +RUN chmod +x gradlew RUN ./gradlew installDist FROM openjdk:8-alpine RUN apk add --no-cache libc6-compat -RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ +RUN GRPC_HEALTH_PROBE_VERSION=v0.2.1 && \ wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \ chmod +x /bin/grpc_health_probe