I have a containerized ASP.NET Core 2.1 Web API with the following Dockerfile:
FROM microsoft/dotnet:2.1-sdk-alpine AS build
# Set working directory within container
WORKDIR /app
# Copy files
COPY ./src .
# Restore dependencies
RUN dotnet restore
# Build app
RUN dotnet publish -c Release -o dist
# Build runtime image
FROM microsoft/dotnet:2.1-aspnetcore-runtime-alpine AS runtime
COPY --from=build /app/dist .
ENTRYPOINT ["dotnet", "demo-netcore-api.dll"]
I need to update the TaskDefinition of service.yaml, but I need an example of the ContainerDefinitions section. Would you be able to tell me where I could find one?
Thanks.