mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Update Dockerfiles for .NET Core 1.1.0. Fixes #489
This commit is contained in:
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user