```在Dockerfile中添加WORKDIR指令
Some checks failed
Mirai-build / Explore-Gitea-Actions (push) Failing after 10s

在Dockerfile中包含WORKDIR指令,确保容器内的默认工作目录设置为/opt。此更改对于在容器启动时正确执行后续命令至关重要。
```
This commit is contained in:
Grand-cocoa 2024-09-18 18:56:15 +08:00
parent 3aadf53e0e
commit f4475cd09d

View File

@ -3,6 +3,7 @@ LABEL authors="Kane"
#ENTRYPOINT ["top", "-b"]
WORKDIR /opt
ADD target/Mirai-bot-0.0.1-SNAPSHOT.jar /opt/Mirai-bot.jar
ADD android_pad.json /opt/android_pad.json
ADD device.json /opt/device.json