Fixing ./gradlew: Permission denied problem on Dockerfile (#146)

This commit is contained in:
Selçuk Usta 2019-02-15 19:22:48 +03:00 committed by Ahmet Alp Balkan
parent 741c669c34
commit e99d0808bf

View file

@ -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