Skip to content

Instantly share code, notes, and snippets.

@LnL7
Created May 9, 2020 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LnL7/6156c2ea3b13dac21393fe6d914880c6 to your computer and use it in GitHub Desktop.
Save LnL7/6156c2ea3b13dac21393fe6d914880c6 to your computer and use it in GitHub Desktop.
{ 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