<commit_before>FROM microsoft/dotnet

COPY . /app

WORKDIR /app/samples/web
RUN dotnet restore
RUN dotnet publish -c Release -o out

ENV ASPNETCORE_URLS http://*:5080
EXPOSE 5080

ENTRYPOINT ["dotnet", "out/web.dll"]
<commit_msg>Update Dockerfile<commit_after>FROM microsoft/aspnetcore-build:latest AS build-env
WORKDIR /app/samples/web

# Copy csproj and restore as distinct layers
COPY *.csproj ./
RUN dotnet restore

# Copy everything else and build
COPY . ./
RUN dotnet publish -c Release -o out

# App settings
ENV ASPNETCORE_URLS http://*:5000
EXPOSE 5000

# Build runtime image
FROM microsoft/aspnetcore:latest
WORKDIR /app/samples/web
COPY --from=build-env /app/samples/web/out .
ENTRYPOINT ["dotnet", "out/web.dll"]

{'fraction_non_alphanumeric': 0.10482758620689656, 'fraction_numerical': 0.022068965517241378, 'mean_word_length': 4.338235294117647, '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': '280471', 'n_tokens_mistral': 263, 'n_tokens_neox': 238, 'n_words': 76}