about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--blog/deploy.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/blog/deploy.nix b/blog/deploy.nix
new file mode 100644
index 000000000000..734e91e41b0b
--- /dev/null
+++ b/blog/deploy.nix
@@ -0,0 +1,15 @@
+{
+  pkgs ? import <nixpkgs> {},
+  briefcase ? import <briefcase> {},
+  ...
+}:
+
+pkgs.dockerTools.buildLayeredImage {
+  name = "blog";
+  tag = "latest";
+  config.ExposedPorts = {
+    "4242" = {};
+  };
+  config.Cmd = [ "${briefcase.blog}/bin/server" ];
+  maxLayers = 120;
+}