/docker-dotnet

dotnet development tools in a docker container

Primary LanguageShellMIT LicenseMIT

This project is archived

⚠️ Use the Microsoft version.

DotNet Core on Linux

Image Size  Image Layers  Docker Registry  Circle CI

Project URL: https://github.com/jumanjihouse/docker-dotnet
Docker hub: https://registry.hub.docker.com/u/jumanjiman/dotnet/

Overview

Provide a container to compile DotNet Core applications on Linux.

Build integrity

CircleCI builds and publishes the image.

workflow

An unattended test harness compiles a sample application from Microsoft. If all tests pass on master branch in the unattended test harness, it pushes the built images to the Docker hub.

References

How-to

Pull an already-built image

These images are built as part of the test harness on CircleCI. If all tests pass on master branch, then the image is pushed into the docker hub.

docker pull jumanjiman/dotnet:latest

The "latest" tag always points to the latest version. Additional tags provide a way to correlate any image to a git commit from this repo.

Build the docker image

Build an image locally on a host with Docker:

docker build --rm -t dotnet -f Dockerfile.alpine .

Run a container interactively from the built image:

docker run --rm -it dotnet bash

Licenses

All files in this repo are subject to LICENSE (also in this repo). I chose MIT license because the trivial sample app from Microsoft is MIT-licensed.