28 lines
468 B

{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let
# entrypoint = writeScript "entrypoint.sh" ''
# #!${stdenv.shell}
# set -e
# exec "$@"
# '';
in
dockerTools.buildImage {
name = "radicale";
runAsRoot = ''
#!${stdenv.shell}
${dockerTools.shadowSetup}
'';
contents = [ radicale ];
config = {
# Cmd = [ "radicale" ];
Entrypoint = [ "radicale" ];
ExposedPorts = {
"6379/tcp" = {};
};
WorkingDir = "/data";
};
}