2022-10-04 16:32:44 +00:00
|
|
|
{ cacert, dockerTools, package, util }:
|
|
|
|
|
|
|
|
dockerTools.buildLayeredImage {
|
|
|
|
name = "surrealdb/surrealdb";
|
2023-04-07 19:56:02 +00:00
|
|
|
# Unfortunately Docker doesn't support semver's `+` so we are using `-` instead
|
|
|
|
tag = "v${builtins.replaceStrings [ "+" ] [ "-" ] util.version}";
|
2022-10-04 16:32:44 +00:00
|
|
|
config = {
|
|
|
|
Env = [ "SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt" ];
|
|
|
|
WorkingDir = "/";
|
|
|
|
Entrypoint = "${package}/bin/${util.packageName}";
|
|
|
|
};
|
|
|
|
}
|