Skip to content

Commit 98f4d39

Browse files
committed
Rename net to blog
1 parent cc522c8 commit 98f4d39

20 files changed

+49
-8
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

course/Controllers/HomeController.cs renamed to blog/Controllers/HomeController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class HomeController : Controller
1414
[HttpGet]
1515
public string Get()
1616
{
17-
return "Blog APIs";
17+
return "<h1>Blog REST API by ASP.net MVC Core</h1>";
1818
}
1919
}
2020
}
File renamed without changes.
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM microsoft/aspnetcore-build:2.0 AS build-env
1+
FROM microsoft/aspnetcore-build:latest AS build-env
22
WORKDIR /app
33

4-
# Copy csproj and restore as distinct layers
4+
# copy csproj and restore as distinct layers
55
COPY *.csproj ./
66
RUN dotnet restore
77

@@ -10,8 +10,11 @@ COPY . ./
1010
RUN dotnet publish -c Release -o out
1111

1212
# Build runtime image
13-
FROM microsoft/aspnetcore:2.0
13+
FROM microsoft/aspnetcore:latest
1414
WORKDIR /app
1515
COPY --from=build-env /app/out .
1616

17+
EXPOSE 8002/tcp
18+
ENV ASPNETCORE_URLS http://*:8002
19+
1720
ENTRYPOINT ["dotnet", "blog.dll"]
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)