Skip to content

Instantly share code, notes, and snippets.

@Rizary
Created July 18, 2018 11:52
Show Gist options
  • Save Rizary/b79f4b307f81768a29079b5fdfe275dc to your computer and use it in GitHub Desktop.
Save Rizary/b79f4b307f81768a29079b5fdfe275dc to your computer and use it in GitHub Desktop.
{ dockerTools, riziBackend, stdenv }:
dockerTools.buildImage {
name = "auth-exe";
contents = [ riziBackend.auth-server ];
runAsRoot = ''
#!${stdenv.shell}
mkdir -p /data/static
'';
config = {
Cmd = [ "/bin/auth-server" ];
WorkingDir = "/data";
Volumes = {
"/data" = {};
};
ExposedPorts = {
"3000/tcp" = {};
};
Env = [
"PORT=3000"
"URL=http://localhost:3000"
"PATH=/bin"
];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment