2021-10-23 19:51:48 +00:00
FROM golang:1.17.2
2021-10-24 07:23:28 +00:00
RUN curl -fsSL https://kumoly.io/attachments/a8b503db-8067-4323-9d1d-bc6e616af452 | tar -C /usr/local/bin/ -xz
2021-10-23 19:51:48 +00:00
WORKDIR /src
RUN touch shell.sh
2021-10-25 04:28:53 +00:00
RUN echo ' { "app_name" :"Go Playground" ,"no_reconfig" :true \
,"files" :[ { "path" :"main.go" ,"name" :"Main" ,"action" :"go run main.go" ,"order" :-1} ,{ "path" :"shell.sh" ,"name" :"Shell" ,"action" :"bash shell.sh" ,"order" :1} ] \
,"hide_config" :true} ' > conf.json
2021-10-25 04:35:37 +00:00
RUN echo ' package main\n \
\n \
import "fmt" \n \
\n \
func main( ) { \n \
fmt.Println( "Hello, world." ) \n \
} \n ' > main.go
2021-10-25 04:28:53 +00:00
2021-10-23 19:51:48 +00:00
CMD [ "configui" , "-log" , "configui.log" , "-f" , "conf.json" ]