23 lines
591 B
Docker
23 lines
591 B
Docker
FROM golang:1.17.2
|
|
|
|
RUN curl -fsSL https://kumoly.io/attachments/a8b503db-8067-4323-9d1d-bc6e616af452 | tar -C /usr/local/bin/ -xz
|
|
|
|
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
|
|
|
|
|
|
|
|
CMD [ "configui", "-log", "configui.log", "-f","conf.json" ] |