Hi,
I have a node.js server built with Nix that is deployed to ECS Fargate. Once deployed I get these errors:
What is normally the reason for such errors? I have already tried --no-dns-resolver
flag.
Here’s the relevant flake-parts module that defines the docker image for those who are familiar with nix. I have found this article that uses direnv, but I would like to use doppler run
if possible. Thank you!
{inputs, ...}: let
imageName = "myproject/app";
imageTag = "latest";
in {
config = {
perSystem = {
self',
pkgs,
lib,
system,
...
}: {
packages = lib.optionalAttrs pkgs.stdenv.isLinux {
appStgDockerImage = pkgs.dockerTools.buildImage {
name = imageName;
tag = imageTag;
created = "now";
copyToRoot = pkgs.buildEnv {
name = imageName;
paths = with pkgs; [doppler coreutils bash_5 self'.packages.app];
pathsToLink = ["/bin" "/lib" ];
};
keepContentsDirlinks = true;
config = {
Cmd = ["doppler" "run" "-p" "app" "-c" "stg" "-t" "$DOPPLER_TOKEN" "--no-dns-resolver" "--debug" "--" "/bin/app"];
ExposedPorts = {"8080/tcp" = {};};
};
};
};
};
};
}