```在Dockerfile中添加WORKDIR指令
Some checks failed
Mirai-build / Explore-Gitea-Actions (push) Failing after 10s
Some checks failed
Mirai-build / Explore-Gitea-Actions (push) Failing after 10s
在Dockerfile中包含WORKDIR指令,确保容器内的默认工作目录设置为/opt。此更改对于在容器启动时正确执行后续命令至关重要。 ```
This commit is contained in:
parent
3aadf53e0e
commit
f4475cd09d
@ -3,6 +3,7 @@ LABEL authors="Kane"
|
|||||||
|
|
||||||
#ENTRYPOINT ["top", "-b"]
|
#ENTRYPOINT ["top", "-b"]
|
||||||
|
|
||||||
|
WORKDIR /opt
|
||||||
ADD target/Mirai-bot-0.0.1-SNAPSHOT.jar /opt/Mirai-bot.jar
|
ADD target/Mirai-bot-0.0.1-SNAPSHOT.jar /opt/Mirai-bot.jar
|
||||||
ADD android_pad.json /opt/android_pad.json
|
ADD android_pad.json /opt/android_pad.json
|
||||||
ADD device.json /opt/device.json
|
ADD device.json /opt/device.json
|
||||||
|
Loading…
Reference in New Issue
Block a user