You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
This is brilliant! Thank you 🙏 Turns out getting grumpy running locally on my macOS workstation was a bit "too hard" since Homebrew has dropped Python 2.x for a while now.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Not a issue, but just sharing my grumpy docker image
https://hub.docker.com/r/syou/alpine-grumpy/
Usage
quick run by using grumprun
run grumpy inside container
docker run -it --rm syou/alpine-grumpy sh
echo 'print "hello, world"' > hello.py
grumpc hello.py > hello.go
go run hello.go
hello, world
run directly by mounting host folder
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.
The text was updated successfully, but these errors were encountered: