forked from cmendible/dotnetcore.samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |