容器构建成功但在启动堆栈时抛出错误
/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
我尝试过的事情:设置权限和所有者。仍然没有运气