Skip to content

Commit b6befd6

Browse files
Updated basic structure of microservices' projects and namespaces
1 parent e898bc0 commit b6befd6

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)