Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Service Template for ASP.NET Core 2.1 Container #43

Open
tonysneed opened this issue Jul 18, 2018 · 0 comments
Open

Service Template for ASP.NET Core 2.1 Container #43

tonysneed opened this issue Jul 18, 2018 · 0 comments

Comments

@tonysneed
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant