GoPlayground/Dockerfile

22 lines
590 B
Docker
Raw Normal View History

2021-10-23 19:51:48 +00:00
FROM golang:1.17.2
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-11-03 20:12:46 +00:00
RUN curl -fsSL https://kumoly.io/attachments/f2ad2283-d5c3-4d55-8941-1fc5f3f7de38 | tar -C /usr/local/bin/ -xz
2021-10-25 04:28:53 +00:00
2021-10-23 19:51:48 +00:00
CMD [ "configui", "-log", "configui.log", "-f","conf.json" ]