Update Dockerfiles for .NET Core 1.1.0. Fixes #489
This commit is contained in:
parent
9c1c1b4023
commit
633969c7b4
|
|
@ -1,17 +1,16 @@
|
||||||
FROM microsoft/dotnet:1.0.0-preview2-onbuild
|
FROM microsoft/dotnet:1.1.0-sdk-projectjson
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN wget -qO- https://deb.nodesource.com/setup_4.x | bash -
|
RUN wget -qO- https://deb.nodesource.com/setup_4.x | bash -
|
||||||
RUN apt-get install -y build-essential nodejs
|
RUN apt-get install -y build-essential nodejs
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY project.json .
|
|
||||||
RUN ["dotnet", "restore"]
|
RUN ["dotnet", "restore"]
|
||||||
|
|
||||||
COPY . /app
|
|
||||||
RUN ["dotnet", "build"]
|
RUN ["dotnet", "build"]
|
||||||
|
|
||||||
EXPOSE 5000/tcp
|
EXPOSE 5000/tcp
|
||||||
|
|
||||||
ENTRYPOINT ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]
|
CMD ["dotnet", "run", "--server.urls", "http://*:5000"]
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,16 @@
|
||||||
FROM microsoft/dotnet:1.0.0-preview2-onbuild
|
FROM microsoft/dotnet:1.1.0-sdk-projectjson
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN wget -qO- https://deb.nodesource.com/setup_4.x | bash -
|
RUN wget -qO- https://deb.nodesource.com/setup_4.x | bash -
|
||||||
RUN apt-get install -y build-essential nodejs
|
RUN apt-get install -y build-essential nodejs
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY project.json .
|
|
||||||
RUN ["dotnet", "restore"]
|
RUN ["dotnet", "restore"]
|
||||||
|
|
||||||
COPY . /app
|
|
||||||
RUN ["dotnet", "build"]
|
RUN ["dotnet", "build"]
|
||||||
|
|
||||||
EXPOSE 5000/tcp
|
EXPOSE 5000/tcp
|
||||||
|
|
||||||
ENTRYPOINT ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]
|
CMD ["dotnet", "run", "--server.urls", "http://*:5000"]
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,16 @@
|
||||||
FROM microsoft/dotnet:latest
|
FROM microsoft/dotnet:1.1.0-sdk-projectjson
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN wget -qO- https://deb.nodesource.com/setup_4.x | bash -
|
RUN wget -qO- https://deb.nodesource.com/setup_4.x | bash -
|
||||||
RUN apt-get install -y build-essential nodejs
|
RUN apt-get install -y build-essential nodejs
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY project.json .
|
|
||||||
RUN ["dotnet", "restore"]
|
RUN ["dotnet", "restore"]
|
||||||
|
|
||||||
COPY . /app
|
|
||||||
RUN ["dotnet", "build"]
|
RUN ["dotnet", "build"]
|
||||||
|
|
||||||
EXPOSE 5000/tcp
|
EXPOSE 5000/tcp
|
||||||
|
|
||||||
ENTRYPOINT ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]
|
CMD ["dotnet", "run", "--server.urls", "http://*:5000"]
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,16 @@
|
||||||
FROM microsoft/dotnet:latest
|
FROM microsoft/dotnet:1.1.0-sdk-projectjson
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN wget -qO- https://deb.nodesource.com/setup_4.x | bash -
|
RUN wget -qO- https://deb.nodesource.com/setup_4.x | bash -
|
||||||
RUN apt-get install -y build-essential nodejs
|
RUN apt-get install -y build-essential nodejs
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY project.json .
|
|
||||||
RUN ["dotnet", "restore"]
|
RUN ["dotnet", "restore"]
|
||||||
|
|
||||||
COPY . /app
|
|
||||||
RUN ["dotnet", "build"]
|
RUN ["dotnet", "build"]
|
||||||
|
|
||||||
EXPOSE 5000/tcp
|
EXPOSE 5000/tcp
|
||||||
|
|
||||||
ENTRYPOINT ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]
|
CMD ["dotnet", "run", "--server.urls", "http://*:5000"]
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,16 @@
|
||||||
FROM microsoft/dotnet:latest
|
FROM microsoft/dotnet:1.1.0-sdk-projectjson
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN wget -qO- https://deb.nodesource.com/setup_4.x | bash -
|
RUN wget -qO- https://deb.nodesource.com/setup_4.x | bash -
|
||||||
RUN apt-get install -y build-essential nodejs
|
RUN apt-get install -y build-essential nodejs
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY project.json .
|
|
||||||
RUN ["dotnet", "restore"]
|
RUN ["dotnet", "restore"]
|
||||||
|
|
||||||
COPY . /app
|
|
||||||
RUN ["dotnet", "build"]
|
RUN ["dotnet", "build"]
|
||||||
|
|
||||||
EXPOSE 5000/tcp
|
EXPOSE 5000/tcp
|
||||||
|
|
||||||
ENTRYPOINT ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]
|
CMD ["dotnet", "run", "--server.urls", "http://*:5000"]
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,12 @@
|
||||||
FROM microsoft/dotnet:latest
|
FROM microsoft/dotnet:1.1.0-sdk-projectjson
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY project.json .
|
|
||||||
RUN ["dotnet", "restore"]
|
RUN ["dotnet", "restore"]
|
||||||
|
|
||||||
COPY . /app
|
|
||||||
RUN ["dotnet", "build"]
|
RUN ["dotnet", "build"]
|
||||||
|
|
||||||
EXPOSE 5000/tcp
|
EXPOSE 5000/tcp
|
||||||
|
|
||||||
ENTRYPOINT ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]
|
CMD ["dotnet", "run", "--server.urls", "http://*:5000"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue