./gradlew 在 docker 容器内找不到

时间:2021-04-06 19:28:48

标签: java docker kotlin gradle

容器构建成功但在启动堆栈时抛出错误

/bin/sh: 1: ./gradlew: not found

这是我的 Dockerfile :

FROM arm32v7/openjdk:7

WORKDIR /iotproject

CMD GRADLE_USER_HOME=cache ./gradlew run

dockercompose :

version : "3.6"

services:
  server:
    build: ./iotproject
    restart: always
    container_name: server
    volumes:
      - ./volumes/server:/iotproject

我尝试过的事情:设置权限和所有者。仍然没有运气

0 个答案:

没有答案