https://github.com/code4clouds/dotnetcore-docker-sample
Sample code to launch a dotnet core app using docker
https://github.com/code4clouds/dotnetcore-docker-sample
docker dotnet
Last synced: 2 months ago
JSON representation
Sample code to launch a dotnet core app using docker
- Host: GitHub
- URL: https://github.com/code4clouds/dotnetcore-docker-sample
- Owner: code4clouds
- License: mit
- Created: 2017-09-27T22:49:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-06T18:25:46.000Z (over 2 years ago)
- Last Synced: 2025-10-11T15:07:26.874Z (8 months ago)
- Topics: docker, dotnet
- Language: C#
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dotnetcore-docker-sample
Create a container to run a .NET Core application using a Dockerfile.
# Instructions (Ubuntu)
### Install Docker, .NET Core and GIT
The instructions for docker can be found [here](https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/).
The instructions for .NET core can be found [here](https://www.microsoft.com/net/core#linuxubuntu).
### Install GIT
``` bash
sudo apt-get install git
```
### Clone the directory
``` bash
git clone https://github.com/code4clouds/dotnetcore-docker-sample.git
```
### Make the build script executable
```bash
chmod +x build.sh
```
### Execute the build script
``` bash
./build.sh
```
### OR Execute the multi-stage docker file
``` bash
docker build -t helloworld .
```
### Run Docker
``` bash
docker run helloworld
```