From b6befd623ab87b9a69fec6066e720f642ce209d4 Mon Sep 17 00:00:00 2001 From: Cesar De la Torre Date: Wed, 7 Sep 2016 17:15:13 -0700 Subject: [PATCH] Updated basic structure of microservices' projects and namespaces --- src/Services/Ordering/Ordering.API/Dockerfile | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/Services/Ordering/Ordering.API/Dockerfile diff --git a/src/Services/Ordering/Ordering.API/Dockerfile b/src/Services/Ordering/Ordering.API/Dockerfile new file mode 100644 index 000000000..427ee81fc --- /dev/null +++ b/src/Services/Ordering/Ordering.API/Dockerfile @@ -0,0 +1,32 @@ +FROM microsoft/dotnet:1.0.0-preview2-sdk + +#Lighter image if copying the compiled app and entrypoint as ENTRYPOINT dotnet Ordering.API.dll +#FROM microsoft/dotnet:1.0.0-core + +# Set the Working Directory +WORKDIR /app + +# Configure the listening port to 88 +ENV ASPNETCORE_URLS http://*:88 + +# Open port exposed by Docker +EXPOSE 88/tcp + +# Copy the app +COPY . /app + +################# + +# Restore NuGet packages +RUN ["dotnet", "restore"] + +# Build the .NET Core app +RUN ["dotnet", "build"] + +# Entrypoint +ENTRYPOINT ["dotnet", "run"] + +################# + +# Entry point through the copied assembly +#ENTRYPOINT dotnet Ordering.API.dll \ No newline at end of file