mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 10:17:15 +08:00
deployment
This commit is contained in:
parent
30fcb63214
commit
1885f0bbb3
@ -10,3 +10,5 @@ FROM portainer/portainer-ce:2.19.0
|
|||||||
LABEL maintainer="websoft9<help@websoft9.com>"
|
LABEL maintainer="websoft9<help@websoft9.com>"
|
||||||
LABEL version="2.19.0"
|
LABEL version="2.19.0"
|
||||||
COPY --from=builder /init_portainer /
|
COPY --from=builder /init_portainer /
|
||||||
|
|
||||||
|
ENTRYPOINT ["/init_portainer"]
|
@ -39,6 +39,9 @@ func main() {
|
|||||||
fmt.Println("write file error:", err)
|
fmt.Println("write file error:", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
cmd := exec.Command("./portainer")
|
||||||
|
cmd.Run()
|
||||||
}
|
}
|
||||||
|
|
||||||
content, err := ioutil.ReadFile(filePath)
|
content, err := ioutil.ReadFile(filePath)
|
||||||
|
Loading…
Reference in New Issue
Block a user