2016-09-14 21:37:48 -07:00
|
|
|
FROM microsoft/aspnetcore
|
|
|
|
# Other .NET images
|
|
|
|
# FROM microsoft/dotnet:1.0.0-preview2-sdk
|
|
|
|
# FROM microsoft/dotnet:1.0.0-core
|
2016-10-03 18:07:55 -07:00
|
|
|
# FROM microsoft/aspnetcore
|
|
|
|
# FROM microsoft/dotnet:1.0.0-preview2-windowsservercore-sdk
|
2016-09-07 17:15:13 -07:00
|
|
|
|
|
|
|
WORKDIR /app
|
2016-09-14 21:37:48 -07:00
|
|
|
EXPOSE 80
|
2016-09-07 17:15:13 -07:00
|
|
|
|
2016-09-14 00:44:13 -07:00
|
|
|
# Configure the listening port to 80
|
2016-09-14 21:37:48 -07:00
|
|
|
# ENV ASPNETCORE_URLS http://*:80
|
2016-09-07 17:15:13 -07:00
|
|
|
|
2016-09-14 21:37:48 -07:00
|
|
|
ADD . /app
|
|
|
|
# COPY . /app
|
2016-09-07 17:15:13 -07:00
|
|
|
|
2016-09-14 21:37:48 -07:00
|
|
|
# Entry point through the copied assembly
|
|
|
|
ENTRYPOINT dotnet Ordering.API.dll
|
2016-09-07 17:15:13 -07:00
|
|
|
|
|
|
|
#################
|
2016-09-14 21:37:48 -07:00
|
|
|
# Entry point running the SDK --> Requires heavy Docker .NET image, not for production
|
2016-09-07 17:15:13 -07:00
|
|
|
# Restore NuGet packages
|
2016-09-14 00:44:13 -07:00
|
|
|
#RUN ["dotnet", "restore"]
|
2016-09-07 17:15:13 -07:00
|
|
|
# Build the .NET Core app
|
2016-09-14 00:44:13 -07:00
|
|
|
#RUN ["dotnet", "build"]
|
2016-09-07 17:15:13 -07:00
|
|
|
# Entrypoint
|
2016-09-14 00:44:13 -07:00
|
|
|
#ENTRYPOINT ["dotnet", "run"]
|
2016-09-07 17:15:13 -07:00
|
|
|
#################
|
|
|
|
|
2016-09-14 21:37:48 -07:00
|
|
|
|
|
|
|
|
|
|
|
|