Skip to content

Commit

Permalink
docker sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Mendible authored and Carlos Mendible committed Sep 26, 2016
1 parent b7ecabb commit bdd4839
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docker.helloworld/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# We use the microsoft/dotnet image as a starting point.
FROM microsoft/dotnet

# Install git
RUN apt-get install git -y

# Create a folder to clone our source code
RUN mkdir repositories

# Set our working folder
WORKDIR repositories

# Clone the source code
RUN git clone https://github.com/cmendible/aspnet-core-helloworld.git

# Set our working folder
WORKDIR aspnet-core-helloworld/src/dotnetstarter

# Expose port 5000 for the application.
EXPOSE 5000

# Restore nuget packages
RUN dotnet restore

# Start the application using dotnet!!!
ENTRYPOINT dotnet run

0 comments on commit bdd4839

Please sign in to comment.