-
-
Save ontouchstart/93a25bbda4015b4263a36049c662b877 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define DOCKERFILE | |
| FROM debian:bookworm-slim@sha256:f06537653ac770703bc45b4b113475bd402f451e85223f0f2837acbf89ab020a | |
| RUN apt-get update -qq && apt-get install -qq -y git | |
| RUN rm -rf /var/lib/apt/lists/* | |
| WORKDIR /home | |
| # A fork of https://gist.github.com/alganet/2b89c4368f8d23d033961d8a3deb5c19 | |
| RUN git clone https://gist.github.com/ontouchstart/281d044cdcfaef22df3c0c389a81f499 | |
| RUN printf 'int main(){puts("hello");return 0;}' | sh 281d044cdcfaef22df3c0c389a81f499/c89cc.sh > hello | |
| RUN chmod +x hello | |
| CMD ["./hello"] | |
| endef | |
| export DOCKERFILE | |
| all: | |
| @echo "Run this outside of a docker container" | |
| cat -n Makefile | |
| Dockerfile: | |
| @echo "$$DOCKERFILE" > Dockerfile | |
| docker build -t gist . | |
| hello: Dockerfile | |
| docker run -it --rm gist | |
| clean: | |
| -docker rmi gist | |
| -rm Dockerfile |
Author
ontouchstart
commented
Apr 3, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment