fix: remove mounting at production error

This commit is contained in:
wancat committed 2023-08-26 11:11:13 +08:00
1 parent 5da311d9a4
commit 54e0689d30
1 file changed
+4 -4
+4 -4
View File
@@ -13,12 +13,12 @@ const containerOptions = {
StdinOnce: false, StdinOnce: false,
HostConfig: { HostConfig: {
Binds: Binds:
config.isProduction && config.hostPwd !config.isProduction && config.hostPwd
? [] ? [
: [
`${config.hostPwd}/quests/helloworld/home:/home/rudeus`, `${config.hostPwd}/quests/helloworld/home:/home/rudeus`,
`${config.hostPwd}/packages/container:/usr/local/lib/container`, `${config.hostPwd}/packages/container:/usr/local/lib/container`,
], ]
: [],
}, },
} }