about summary refs log tree commit diff
path: root/docker/cloud_run.nix
diff options
context:
space:
mode:
Diffstat (limited to 'docker/cloud_run.nix')
-rw-r--r--docker/cloud_run.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/docker/cloud_run.nix b/docker/cloud_run.nix
new file mode 100644
index 000000000000..02440df08872
--- /dev/null
+++ b/docker/cloud_run.nix
@@ -0,0 +1,9 @@
+# Attempting to build a Docker image with Nix to run using Google Cloud Run.
+{ pkgs ? import <nixpkgs> {}, ... }:
+
+pkgs.dockerTools.buildLayeredImage {
+  name = "mysql";
+  tag = "latest";
+  config.Cmd = [ "${pkgs.mysql}/bin/mysqld" ];
+  maxLayers = 120;
+}