Commit c9c8d15 1 parent b6c5bd2 commit c9c8d15 Copy full SHA for c9c8d15
File tree 13 files changed +11
-56
lines changed
13 files changed +11
-56
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
22
[Oo ]bj /
23
23
[Ll ]og /
24
24
[Oo ]ut /
25
+ [Pp ]ublished /
25
26
26
27
# Visual Studio 2015 cache/options directory
27
28
.vs /
Original file line number Diff line number Diff line change 1
- FROM microsoft/dotnet :1.1-runtime -nanoserver
1
+ FROM microsoft/aspnetcore :1.1.2 -nanoserver
2
2
WORKDIR /app
3
- ENV ASPNETCORE_URLS http://+:80
4
3
COPY published ./
5
4
ENTRYPOINT ["dotnet", "aspnetapp.dll"]
Original file line number Diff line number Diff line change 1
- FROM microsoft/dotnet:1.1-runtime
1
+ FROM microsoft/dotnet:1.1-runtime
2
2
WORKDIR /app
3
- COPY out .
3
+ COPY out ./
4
4
ENTRYPOINT ["dotnet" , "dotnetapp.dll" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -22,20 +22,11 @@ dotnet restore
22
22
dotnet run Hello .NET Core from Docker
23
23
```
24
24
25
- Follow these steps to run this sample in a Linux container:
25
+ Follow these steps to run this sample in either a Linux or Windows container environment :
26
26
27
27
``` console
28
28
dotnet restore
29
29
dotnet publish -c Release -o out
30
30
docker build -t dotnetapp .
31
31
docker run dotnetapp Hello .NET Core from Docker
32
32
```
33
-
34
- Follow these steps to run this sample in a Windows container:
35
-
36
- ``` console
37
- dotnet restore
38
- dotnet publish -c Release -o out
39
- docker build -t dotnetapp -f Dockerfile.nano .
40
- docker run dotnetapp Hello .NET Core from Docker
41
- ```
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ FROM microsoft/dotnet:1.1-sdk
2
2
WORKDIR /app
3
3
4
4
# copy csproj and restore as distinct layers
5
- COPY dotnetapp.csproj .
5
+ COPY dotnetapp.csproj ./
6
6
RUN dotnet restore
7
7
8
8
# copy and build everything else
9
- COPY . .
9
+ COPY . ./
10
10
RUN dotnet publish -c Release -o out
11
11
ENTRYPOINT ["dotnet" , "out/dotnetapp.dll" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -22,16 +22,9 @@ dotnet restore
22
22
dotnet run Hello .NET Core
23
23
```
24
24
25
- Follow these steps to run this sample in a Linux container:
25
+ Follow these steps to run this sample in a Linux or Windows container environment :
26
26
27
27
``` console
28
28
docker build -t dotnetapp .
29
29
docker run dotnetapp Hello .NET Core from Docker
30
30
```
31
-
32
- Follow these steps to run this sample in a Windows container:
33
-
34
- ``` console
35
- docker build -t dotnetapp -f Dockerfile.nano .
36
- docker run dotnetapp Hello .NET Core from Docker
37
- ```
Original file line number Diff line number Diff line change 1
1
FROM microsoft/dotnet:1.0-runtime
2
2
WORKDIR /app
3
- COPY out .
3
+ COPY out ./
4
4
ENTRYPOINT ["dotnet" , "dotnetapp.dll" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -22,20 +22,11 @@ dotnet restore
22
22
dotnet run Hello .NET Core from Docker
23
23
```
24
24
25
- Follow these steps to run this sample in a Linux container:
25
+ Follow these steps to run this sample in a Linux or Windows container environment :
26
26
27
27
``` console
28
28
dotnet restore
29
29
dotnet publish -c Release -o out
30
30
docker build -t dotnetapp .
31
31
docker run dotnetapp Hello .NET Core from Docker
32
32
```
33
-
34
- Follow these steps to run this sample in a Windows container:
35
-
36
- ``` console
37
- dotnet restore
38
- dotnet publish -c Release -o out
39
- docker build -t dotnetapp -f Dockerfile.nano .
40
- docker run dotnetapp Hello .NET Core from Docker
41
- ```
Original file line number Diff line number Diff line change 1
1
FROM microsoft/dotnet:1.0-runtime-deps
2
2
WORKDIR /app
3
- COPY out .
3
+ COPY out ./
4
4
ENTRYPOINT ["./dotnetapp" ]
You can’t perform that action at this time.
0 commit comments