From d9afe4db1fe09ea5c44a4f236df6b9cf00c77e88 Mon Sep 17 00:00:00 2001 From: John Ingram Date: Fri, 12 May 2023 15:55:11 +0200 Subject: [PATCH] Expose port --- Dockerfile | 1 + Startup.cs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b612447..a89854a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,4 +15,5 @@ RUN dotnet publish -c Release -o /app FROM mcr.microsoft.com/dotnet/aspnet:7.0 WORKDIR /app COPY --from=build /app . +EXPOSE 5000 ENTRYPOINT ["dotnet", "TodoApi.dll"] diff --git a/Startup.cs b/Startup.cs index 6f69c79..81af976 100644 --- a/Startup.cs +++ b/Startup.cs @@ -18,7 +18,6 @@ public void ConfigureServices(IServiceCollection services) { services.AddAutoMapper(typeof(Startup)); - // TODO Remove localhost AmazonDynamoDBConfig clientConfig = new AmazonDynamoDBConfig(); clientConfig.RegionEndpoint = RegionEndpoint.USEast1; AmazonDynamoDBClient client = new AmazonDynamoDBClient(clientConfig);