<commit_before>FROM zoltu/aspnetcore-gulp-bower

RUN npm install -g handlebars

# begin nuget caching laayer
COPY global.json /app/global.json
COPY code/project.json /app/code/project.json
COPY code/project.lock.json /app/code/project.lock.json
COPY tests/project.json /app/tests/project.json
COPY tests/project.lock.json /app/tests/project.lock.json
WORKDIR /app
RUN dotnet restore
# end nuget caching layer

# begin server layer
COPY code/*.cs /app/code/
COPY code/Controllers/ /app/code/Controllers/
COPY tests/ /app/tests
WORKDIR /app
RUN dotnet restore
WORKDIR /app/code
RUN dotnet build
WORKDIR /app/tests
RUN dotnet build
RUN dotnet test
# end server layer

# begin client layer
COPY code/client /app/code/client
WORKDIR /app/code
RUN handlebars /app/code/client/scripts/templates/ --output /app/code/client/scripts/templates/template.min.js --map
# end client layer

EXPOSE 80

ENTRYPOINT ["dotnet", "run"]<commit_msg>Adds missing file to Dockerfile.<commit_after>FROM zoltu/aspnetcore-gulp-bower

RUN npm install -g handlebars

# begin nuget caching laayer
COPY global.json /app/global.json
COPY code/project.json /app/code/project.json
COPY code/project.lock.json /app/code/project.lock.json
COPY tests/project.json /app/tests/project.json
COPY tests/project.lock.json /app/tests/project.lock.json
WORKDIR /app
RUN dotnet restore
# end nuget caching layer

# begin server layer
COPY code/*.cs /app/code/
COPY code/Controllers/ /app/code/Controllers/
COPY code/Extensions/ /app/code/Extensions/
COPY tests/ /app/tests
WORKDIR /app
RUN dotnet restore
WORKDIR /app/code
RUN dotnet build
WORKDIR /app/tests
RUN dotnet build
RUN dotnet test
# end server layer

# begin client layer
COPY code/client /app/code/client
WORKDIR /app/code
RUN handlebars /app/code/client/scripts/templates/ --output /app/code/client/scripts/templates/template.min.js --map
# end client layer

EXPOSE 80

ENTRYPOINT ["dotnet", "run"]
{'fraction_non_alphanumeric': 0.10496083550913839, 'fraction_numerical': 0.0020887728459530026, 'mean_word_length': 4.082228116710875, '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': '4058887', 'n_tokens_mistral': 650, 'n_tokens_neox': 623, 'n_words': 186}