Skip to content

bitplane/Dockerfile.exe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Self executing Dockerfile

awk runs its own params and can access its second param, which means it can be used to make a self-executing Dockerfile:

#!/bin/awk BEGIN { system("t=$(mktemp -d); cat " ARGV[1] " > $t/Dockerfile; cd $t; docker run --rm $(docker build -q .); rm -rf $t") }
FROM alpine

ENTRYPOINT ["sh", "-c", "echo hello world"]

About

A self-executing Dockerfile. Because, why not?

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages