mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 01:50:19 +08:00
deployment
This commit is contained in:
parent
30fcb63214
commit
1885f0bbb3
@ -9,4 +9,6 @@ RUN chmod +x /init_portainer
|
||||
FROM portainer/portainer-ce:2.19.0
|
||||
LABEL maintainer="websoft9<help@websoft9.com>"
|
||||
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)
|
||||
return
|
||||
}
|
||||
}else{
|
||||
cmd := exec.Command("./portainer")
|
||||
cmd.Run()
|
||||
}
|
||||
|
||||
content, err := ioutil.ReadFile(filePath)
|
||||
|
Loading…
Reference in New Issue
Block a user