echo 'print "hello, world"' | docker run -i --rm \
syou/alpine-grumpy grumprun
hello, world
docker run -it --rm syou/alpine-grumpy sh
echo 'print "hello, world"' > hello.pygrumpc hello.py > hello.gogo run hello.gohello, world
cd /tmp/
echo 'print "hello, world"' > hello.py
docker run -it --rm -v $PWD:/src/app syou/alpine-grumpy \
grumpc hello.py > hello.go
docker run -it --rm -v $PWD:/src/app syou/alpine-grumpy \
go run hello.go
hello, world
docker run -it --rm -v $PWD:/src/app syou/alpine-grumpy \
go build -ldflags "-extldflags -static" \
-o hello hello.go
./hello
hello, world
Note that $PWD should be writable or use /tmp folder to write file from docker, since final image not using root user, but you can specify --user 0 if you insist, but not recommended.
Content type
Image
Digest
Size
92.1 MB
Last updated
over 9 years ago
docker pull syou/alpine-grumpy