deployment

This commit is contained in:
qiaofeng1227 2023-09-19 16:28:36 +08:00
parent 30fcb63214
commit 1885f0bbb3
2 changed files with 6 additions and 1 deletions

View File

@ -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"]

View File

@ -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)