Rust container
Deploy a Rust app in a container with a load balancer using a Dockerfile.
const vpc = new sst.aws.Vpc("MyVpc", { nat: "gateway" });const cluster = new sst.aws.Cluster("MyCluster", { vpc });
const service = new sst.aws.Service("MyService", { cluster, image: { context: "./", dockerfile: "Dockerfile", }, loadBalancer: { domain: "rust.dockerfile.dev.sst.dev", ports: [ { listen: "80/http" }, { listen: "443/https", forward: "80/http" }, ], },});View the full example.