Skip to content

Commit 698921d

Browse files
Update Dockerfile in all templates to match .NET Core 1.0 RTM. Fixes aspnet#120
1 parent c892f7d commit 698921d

File tree

5 files changed

+40
-30
lines changed

5 files changed

+40
-30
lines changed

templates/Angular2Spa/Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
FROM microsoft/aspnet:1.0.0-rc1-update1
2-
3-
RUN printf "deb http://ftp.us.debian.org/debian jessie main\n" >> /etc/apt/sources.list
4-
RUN apt-get -qq update && apt-get install -qqy sqlite3 libsqlite3-dev && rm -rf /var/lib/apt/lists/*
1+
FROM microsoft/dotnet:latest
52

63
COPY . /app
4+
75
WORKDIR /app
8-
RUN ["dnu", "restore"]
6+
7+
RUN ["dotnet", "restore"]
8+
9+
RUN ["dotnet", "build"]
910

1011
EXPOSE 5000/tcp
11-
ENTRYPOINT ["dnx", "-p", "project.json", "web"]
12+
13+
ENTRYPOINT ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]

templates/KnockoutSpa/Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
FROM microsoft/aspnet:1.0.0-rc1-update1
2-
3-
RUN printf "deb http://ftp.us.debian.org/debian jessie main\n" >> /etc/apt/sources.list
4-
RUN apt-get -qq update && apt-get install -qqy sqlite3 libsqlite3-dev && rm -rf /var/lib/apt/lists/*
1+
FROM microsoft/dotnet:latest
52

63
COPY . /app
4+
75
WORKDIR /app
8-
RUN ["dnu", "restore"]
6+
7+
RUN ["dotnet", "restore"]
8+
9+
RUN ["dotnet", "build"]
910

1011
EXPOSE 5000/tcp
11-
ENTRYPOINT ["dnx", "-p", "project.json", "web"]
12+
13+
ENTRYPOINT ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]

templates/ReactReduxSpa/Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
FROM microsoft/aspnet:1.0.0-rc1-update1
2-
3-
RUN printf "deb http://ftp.us.debian.org/debian jessie main\n" >> /etc/apt/sources.list
4-
RUN apt-get -qq update && apt-get install -qqy sqlite3 libsqlite3-dev && rm -rf /var/lib/apt/lists/*
1+
FROM microsoft/dotnet:latest
52

63
COPY . /app
4+
75
WORKDIR /app
8-
RUN ["dnu", "restore"]
6+
7+
RUN ["dotnet", "restore"]
8+
9+
RUN ["dotnet", "build"]
910

1011
EXPOSE 5000/tcp
11-
ENTRYPOINT ["dnx", "-p", "project.json", "web"]
12+
13+
ENTRYPOINT ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]

templates/ReactSpa/Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
FROM microsoft/aspnet:1.0.0-rc1-update1
2-
3-
RUN printf "deb http://ftp.us.debian.org/debian jessie main\n" >> /etc/apt/sources.list
4-
RUN apt-get -qq update && apt-get install -qqy sqlite3 libsqlite3-dev && rm -rf /var/lib/apt/lists/*
1+
FROM microsoft/dotnet:latest
52

63
COPY . /app
4+
75
WORKDIR /app
8-
RUN ["dnu", "restore"]
6+
7+
RUN ["dotnet", "restore"]
8+
9+
RUN ["dotnet", "build"]
910

1011
EXPOSE 5000/tcp
11-
ENTRYPOINT ["dnx", "-p", "project.json", "web"]
12+
13+
ENTRYPOINT ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
FROM microsoft/aspnet:1.0.0-rc1-update1
2-
3-
RUN printf "deb http://ftp.us.debian.org/debian jessie main\n" >> /etc/apt/sources.list
4-
RUN apt-get -qq update && apt-get install -qqy sqlite3 libsqlite3-dev && rm -rf /var/lib/apt/lists/*
1+
FROM microsoft/dotnet:latest
52

63
COPY . /app
4+
75
WORKDIR /app
8-
RUN ["dnu", "restore"]
6+
7+
RUN ["dotnet", "restore"]
8+
9+
RUN ["dotnet", "build"]
910

1011
EXPOSE 5000/tcp
11-
ENTRYPOINT ["dnx", "-p", "project.json", "web"]
12+
13+
ENTRYPOINT ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]

0 commit comments

Comments
 (0)