We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e898bc0 commit b6befd6Copy full SHA for b6befd6
1 file changed
src/Services/Ordering/Ordering.API/Dockerfile
@@ -0,0 +1,32 @@
1
+FROM microsoft/dotnet:1.0.0-preview2-sdk
2
+
3
+#Lighter image if copying the compiled app and entrypoint as ENTRYPOINT dotnet Ordering.API.dll
4
+#FROM microsoft/dotnet:1.0.0-core
5
6
+# Set the Working Directory
7
+WORKDIR /app
8
9
+# Configure the listening port to 88
10
+ENV ASPNETCORE_URLS http://*:88
11
12
+# Open port exposed by Docker
13
+EXPOSE 88/tcp
14
15
+# Copy the app
16
+COPY . /app
17
18
+#################
19
20
+# Restore NuGet packages
21
+RUN ["dotnet", "restore"]
22
23
+# Build the .NET Core app
24
+RUN ["dotnet", "build"]
25
26
+# Entrypoint
27
+ENTRYPOINT ["dotnet", "run"]
28
29
30
31
+# Entry point through the copied assembly
32
+#ENTRYPOINT dotnet Ordering.API.dll
0 commit comments