<commit_before>FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build-env
WORKDIR /build/src

# --------------------------------------
# RESTORE
# --------------------------------------

# Copy microservice components:
COPY ./src/Components/Solution.Context.App/*.csproj ./Components/Solution.Context.App/
COPY ./src/Components/Solution.Context.Domain/*.csproj ./Components/Solution.Context.Domain/
COPY ./src/Components/Solution.Context.Infra/*.csproj ./Components/Solution.Context.Infra/

# Copy microservice hosts:
COPY ./src/Solution.Context.Tests/*.csproj ./Solution.Context.Tests/
COPY ./src/Solution.Context.WebApi/*.csproj ./Solution.Context.WebApi/

# Copy the solution file to restore all projects:
COPY ./Solution.Context.sln /build
RUN dotnet restore /build

# --------------------------------------
# BUILD / TEST / PUBLISH
# --------------------------------------

# Copy all of the source to be built:
COPY ./src ./
RUN dotnet build /build 
RUN dotnet test ./Solution.Context.Tests/ --no-build
RUN dotnet publish ./Solution.Context.WebApi/Solution.Context.WebApi.csproj --output ../../out --no-build

# --------------------------------------
# CREATE IMAGE FOR CONTAINER CREATION
# --------------------------------------
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2	
WORKDIR /microservice

COPY --from=build-env /build/out ./
ENTRYPOINT ["dotnet", "Solution.Context.WebApi.dll"]
EXPOSE 80<commit_msg>Updated the Dockerfile generated by the Microservice Solution template to use the 3.1 sdk and 3.1 runtime.<commit_after>FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env
WORKDIR /build/src

# --------------------------------------
# RESTORE
# --------------------------------------

# Copy microservice components:
COPY ./src/Components/Solution.Context.App/*.csproj ./Components/Solution.Context.App/
COPY ./src/Components/Solution.Context.Domain/*.csproj ./Components/Solution.Context.Domain/
COPY ./src/Components/Solution.Context.Infra/*.csproj ./Components/Solution.Context.Infra/

# Copy microservice hosts:
COPY ./src/Solution.Context.Tests/*.csproj ./Solution.Context.Tests/
COPY ./src/Solution.Context.WebApi/*.csproj ./Solution.Context.WebApi/

# Copy the solution file to restore all projects:
COPY ./Solution.Context.sln /build
RUN dotnet restore /build

# --------------------------------------
# BUILD / TEST / PUBLISH
# --------------------------------------

# Copy all of the source to be built:
COPY ./src ./
RUN dotnet build /build 
RUN dotnet test ./Solution.Context.Tests/ --no-build
RUN dotnet publish ./Solution.Context.WebApi/Solution.Context.WebApi.csproj --output ../../out --no-build

# --------------------------------------
# CREATE IMAGE FOR CONTAINER CREATION
# --------------------------------------
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1	
WORKDIR /microservice

COPY --from=build-env /build/out ./
ENTRYPOINT ["dotnet", "Solution.Context.WebApi.dll"]
EXPOSE 80
{'fraction_non_alphanumeric': 0.27166837958204865, 'fraction_numerical': 0.005481329222336417, 'mean_word_length': 1.9735234215885946, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7585852', 'n_tokens_mistral': 877, 'n_tokens_neox': 789, 'n_words': 193}