You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
468 B

  1. { pkgs ? import <nixpkgs> {} }:
  2. with pkgs;
  3. let
  4. # entrypoint = writeScript "entrypoint.sh" ''
  5. # #!${stdenv.shell}
  6. # set -e
  7. # exec "$@"
  8. # '';
  9. in
  10. dockerTools.buildImage {
  11. name = "radicale";
  12. runAsRoot = ''
  13. #!${stdenv.shell}
  14. ${dockerTools.shadowSetup}
  15. '';
  16. contents = [ radicale ];
  17. config = {
  18. # Cmd = [ "radicale" ];
  19. Entrypoint = [ "radicale" ];
  20. ExposedPorts = {
  21. "6379/tcp" = {};
  22. };
  23. WorkingDir = "/data";
  24. };
  25. }