<commit_before>
Build ASP.NET Core Docker Image
====================

This repository contains `Dockerfile` definitions for ASP.NET Core Docker images that can be used to build ASP.NET Core projects. These Dockerfiles use the [Dotnet image](https://hub.docker.com/r/microsoft/dotnet/) as its base.



[![Downloads from Docker Hub](https://img.shields.io/docker/pulls/microsoft/aspnetcore-build.svg)](https://hub.docker.com/r/microsoft/aspnetcore-build)
[![Stars on Docker Hub](https://img.shields.io/docker/stars/microsoft/aspnetcore-build.svg)](https://hub.docker.com/r/microsoft/aspnetcore-build)

This image contains:

- [.NET Cli](https://github.com/dotnet/cli) so that you can create, build and run your .NET Core applications.
- A Nuget package cache for the ASP.NET Core libraries.  This will significantly improve the initial package restore performance when building ASP.NET Core application.
- [Node.js](https://nodejs.org)
- [Bower](https://bower.io/)
- [Gulp](http://gulpjs.com/)

## Supported tags

- [`1.0.1`, `latest` (*Dockerfile*)](https://github.com/aspnet/aspnet-docker/blob/master/1.0.1/jessie/build/Dockerfile)

## Example Usage

1. Create a Dockerfile to build your application (`Dockerfile.build` is a common name used).

    ```Dockerfile
    FROM microsoft/aspnetcore-build
    WORKDIR /app

    COPY project.json .
    RUN dotnet restore

    COPY . .
    RUN dotnet publish --output /out/. --configuration Release
    ```

2. Build your image:

    ```
    $ docker build -t build-image -f Dockerfile.build .
    ```

3. Create a container from your image and copy your built application out.

    ```
    $ docker create --build-cont build-image
    $ docker cp build-image:/out ./output
    ```

Now you have built your ASP.NET Core application inside a container and have the published output on the host ready to deploy. From here you could then construct an optimized runtime image with the `microsoft/aspnetcore` image or just deploy/run the binaries as normal without using Docker at runtime.<commit_msg>Fix README.md to have correct docker commands for build container.<commit_after>
Build ASP.NET Core Docker Image
====================

This repository contains `Dockerfile` definitions for ASP.NET Core Docker images that can be used to build ASP.NET Core projects. These Dockerfiles use the [Dotnet image](https://hub.docker.com/r/microsoft/dotnet/) as its base.



[![Downloads from Docker Hub](https://img.shields.io/docker/pulls/microsoft/aspnetcore-build.svg)](https://hub.docker.com/r/microsoft/aspnetcore-build)
[![Stars on Docker Hub](https://img.shields.io/docker/stars/microsoft/aspnetcore-build.svg)](https://hub.docker.com/r/microsoft/aspnetcore-build)

This image contains:

- [.NET Cli](https://github.com/dotnet/cli) so that you can create, build and run your .NET Core applications.
- A Nuget package cache for the ASP.NET Core libraries.  This will significantly improve the initial package restore performance when building ASP.NET Core application.
- [Node.js](https://nodejs.org)
- [Bower](https://bower.io/)
- [Gulp](http://gulpjs.com/)

## Supported tags

- [`1.0.1`, `latest` (*Dockerfile*)](https://github.com/aspnet/aspnet-docker/blob/master/1.0.1/jessie/build/Dockerfile)

## Example Usage

1. Create a Dockerfile to build your application (`Dockerfile.build` is a common name used).

    ```Dockerfile
    FROM microsoft/aspnetcore-build
    WORKDIR /app

    COPY project.json .
    RUN dotnet restore

    COPY . .
    RUN dotnet publish --output /out/. --configuration Release
    ```

2. Build your image:

    ```
    $ docker build -t build-image -f Dockerfile.build .
    ```

3. Create a container from your image and copy your built application out.

    ```
    $ docker create --name build-cont build-image
    $ docker cp build-cont:/out ./output
    ```

Now you have built your ASP.NET Core application inside a container and have the published output on the host ready to deploy. From here you could then construct an optimized runtime image with the `microsoft/aspnetcore` image or just deploy/run the binaries as normal without using Docker at runtime.
{'fraction_non_alphanumeric': 0.12339704814904427, 'fraction_numerical': 0.004355189934672151, 'mean_word_length': 3.681766704416761, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 18, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5601573', 'n_tokens_mistral': 1276, 'n_tokens_neox': 1172, 'n_words': 415}