Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit 633969c

Browse files
Update Dockerfiles for .NET Core 1.1.0. Fixes #489
1 parent 9c1c1b4 commit 633969c

File tree

6 files changed

+24
-30
lines changed

6 files changed

+24
-30
lines changed

templates/Angular2Spa/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
FROM microsoft/dotnet:1.0.0-preview2-onbuild
1+
FROM microsoft/dotnet:1.1.0-sdk-projectjson
22

33
RUN apt-get update
44
RUN wget -qO- https://deb.nodesource.com/setup_4.x | bash -
55
RUN apt-get install -y build-essential nodejs
66

7+
COPY . /app
8+
79
WORKDIR /app
810

9-
COPY project.json .
1011
RUN ["dotnet", "restore"]
11-
12-
COPY . /app
1312
RUN ["dotnet", "build"]
1413

1514
EXPOSE 5000/tcp
1615

17-
ENTRYPOINT ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]
16+
CMD ["dotnet", "run", "--server.urls", "http://*:5000"]

templates/AureliaSpa/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
FROM microsoft/dotnet:1.0.0-preview2-onbuild
1+
FROM microsoft/dotnet:1.1.0-sdk-projectjson
22

33
RUN apt-get update
44
RUN wget -qO- https://deb.nodesource.com/setup_4.x | bash -
55
RUN apt-get install -y build-essential nodejs
66

7+
COPY . /app
8+
79
WORKDIR /app
810

9-
COPY project.json .
1011
RUN ["dotnet", "restore"]
11-
12-
COPY . /app
1312
RUN ["dotnet", "build"]
1413

1514
EXPOSE 5000/tcp
1615

17-
ENTRYPOINT ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]
16+
CMD ["dotnet", "run", "--server.urls", "http://*:5000"]

templates/KnockoutSpa/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
FROM microsoft/dotnet:latest
1+
FROM microsoft/dotnet:1.1.0-sdk-projectjson
22

33
RUN apt-get update
44
RUN wget -qO- https://deb.nodesource.com/setup_4.x | bash -
55
RUN apt-get install -y build-essential nodejs
66

7+
COPY . /app
8+
79
WORKDIR /app
810

9-
COPY project.json .
1011
RUN ["dotnet", "restore"]
11-
12-
COPY . /app
1312
RUN ["dotnet", "build"]
1413

1514
EXPOSE 5000/tcp
1615

17-
ENTRYPOINT ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]
16+
CMD ["dotnet", "run", "--server.urls", "http://*:5000"]

templates/ReactReduxSpa/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
FROM microsoft/dotnet:latest
1+
FROM microsoft/dotnet:1.1.0-sdk-projectjson
22

33
RUN apt-get update
44
RUN wget -qO- https://deb.nodesource.com/setup_4.x | bash -
55
RUN apt-get install -y build-essential nodejs
66

7+
COPY . /app
8+
79
WORKDIR /app
810

9-
COPY project.json .
1011
RUN ["dotnet", "restore"]
11-
12-
COPY . /app
1312
RUN ["dotnet", "build"]
1413

1514
EXPOSE 5000/tcp
1615

17-
ENTRYPOINT ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]
16+
CMD ["dotnet", "run", "--server.urls", "http://*:5000"]

templates/ReactSpa/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
FROM microsoft/dotnet:latest
1+
FROM microsoft/dotnet:1.1.0-sdk-projectjson
22

33
RUN apt-get update
44
RUN wget -qO- https://deb.nodesource.com/setup_4.x | bash -
55
RUN apt-get install -y build-essential nodejs
66

7+
COPY . /app
8+
79
WORKDIR /app
810

9-
COPY project.json .
1011
RUN ["dotnet", "restore"]
11-
12-
COPY . /app
1312
RUN ["dotnet", "build"]
1413

1514
EXPOSE 5000/tcp
1615

17-
ENTRYPOINT ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]
16+
CMD ["dotnet", "run", "--server.urls", "http://*:5000"]
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
FROM microsoft/dotnet:latest
1+
FROM microsoft/dotnet:1.1.0-sdk-projectjson
2+
3+
COPY . /app
24

35
WORKDIR /app
46

5-
COPY project.json .
67
RUN ["dotnet", "restore"]
7-
8-
COPY . /app
98
RUN ["dotnet", "build"]
109

1110
EXPOSE 5000/tcp
1211

13-
ENTRYPOINT ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]
12+
CMD ["dotnet", "run", "--server.urls", "http://*:5000"]

0 commit comments

Comments
 (0)