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-10-25 04:40:40 +00:00
RUN curl -fsSL https://kumoly.io/attachments/a8b503db-8067-4323-9d1d-bc6e616af452 | 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" ]