22 lines
		
	
	
		
			590 B
		
	
	
	
		
			Docker
		
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			590 B
		
	
	
	
		
			Docker
		
	
	
FROM golang:1.17.2
 | 
						|
 | 
						|
WORKDIR /src
 | 
						|
 | 
						|
RUN touch shell.sh
 | 
						|
 | 
						|
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
 | 
						|
 | 
						|
RUN echo 'package main\n\
 | 
						|
\n\
 | 
						|
import "fmt"\n\
 | 
						|
\n\
 | 
						|
func main() {\n\
 | 
						|
	fmt.Println("Hello, world.")\n\
 | 
						|
}\n' > main.go
 | 
						|
 | 
						|
 | 
						|
RUN curl -fsSL https://kumoly.io/attachments/f2ad2283-d5c3-4d55-8941-1fc5f3f7de38 | tar -C /usr/local/bin/ -xz
 | 
						|
 | 
						|
CMD [ "configui", "-log", "configui.log", "-f","conf.json" ] |