Created
May 9, 2020 09:43
-
-
Save LnL7/6156c2ea3b13dac21393fe6d914880c6 to your computer and use it in GitHub Desktop.
This file contains 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
{ pkgs ? import <nixpkgs> {} }: | |
let | |
script = pkgs.writeScriptBin "readme" '' | |
#!${pkgs.stdenv.shell} | |
cat ${./README.md} | |
''; | |
in | |
pkgs.dockerTools.buildImage { | |
name = "readme"; | |
tag = "latest"; | |
contents = [ script pkgs.coreutils ]; | |
config.Cmd = [ "/bin/readme" ]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment