Fixing ./gradlew: Permission denied problem on Dockerfile (#146)
This commit is contained in:
parent
741c669c34
commit
e99d0808bf
1 changed files with 3 additions and 1 deletions
|
@ -4,16 +4,18 @@ WORKDIR /app
|
||||||
|
|
||||||
COPY ["build.gradle", "gradlew", "./"]
|
COPY ["build.gradle", "gradlew", "./"]
|
||||||
COPY gradle gradle
|
COPY gradle gradle
|
||||||
|
RUN chmod +x gradlew
|
||||||
RUN ./gradlew downloadRepos
|
RUN ./gradlew downloadRepos
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN chmod +x gradlew
|
||||||
RUN ./gradlew installDist
|
RUN ./gradlew installDist
|
||||||
|
|
||||||
FROM openjdk:8-alpine
|
FROM openjdk:8-alpine
|
||||||
|
|
||||||
RUN apk add --no-cache libc6-compat
|
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 && \
|
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
|
chmod +x /bin/grpc_health_probe
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue