Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (17 sloc) 606 Bytes
# Use Microsoft's official lightweight .NET images.
FROM AS build
# Install production dependencies.
# Copy csproj and restore as distinct layers.
COPY *.csproj ./
RUN dotnet restore
# Copy local code to the container image.
COPY . ./
# Build a release artifact.
RUN dotnet publish -c Release -o out
# Run the web service on container startup in a lean production image.
COPY --from=build /app/out ./
CMD ["dotnet", "HelloGKE.dll"]
You can’t perform that action at this time.