updating to latest version of dotnet
This commit is contained in:
parent
c33b6ae23b
commit
5be0813483
@ -25,7 +25,8 @@ services:
|
|||||||
- back-tier
|
- back-tier
|
||||||
|
|
||||||
worker:
|
worker:
|
||||||
build: ./worker
|
build:
|
||||||
|
context: ./worker
|
||||||
networks:
|
networks:
|
||||||
- back-tier
|
- back-tier
|
||||||
|
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
FROM microsoft/dotnet:1.0.0-preview2-sdk
|
FROM microsoft/dotnet:1.1.1-sdk
|
||||||
|
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
|
|
||||||
ADD src/Worker /code/src/Worker
|
ADD src/Worker /code/src/Worker
|
||||||
|
|
||||||
RUN dotnet restore -v minimal src/ \
|
RUN dotnet restore -v minimal src/Worker \
|
||||||
&& dotnet publish -c Release -o ./ src/Worker/ \
|
&& dotnet publish -c Release -o "./" "src/Worker/"
|
||||||
&& rm -rf src/ $HOME/.nuget/
|
|
||||||
|
|
||||||
CMD dotnet Worker.dll
|
CMD dotnet src/Worker/Worker.dll
|
19
worker/src/Worker/Worker.csproj
Normal file
19
worker/src/Worker/Worker.csproj
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>netcoreapp1.0</TargetFramework>
|
||||||
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
|
<AssemblyName>Worker</AssemblyName>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<PackageId>Worker</PackageId>
|
||||||
|
<ServerGarbageCollection>true</ServerGarbageCollection>
|
||||||
|
<RuntimeFrameworkVersion>1.1.1</RuntimeFrameworkVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="StackExchange.Redis" Version="1.1.604-alpha" />
|
||||||
|
<PackageReference Include="Npgsql" Version="3.1.3" />
|
||||||
|
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
@ -1,24 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "Worker",
|
|
||||||
"buildOptions": {
|
|
||||||
"emitEntryPoint": true,
|
|
||||||
"warningsAsErrors": true
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"StackExchange.Redis": "1.1.604-alpha",
|
|
||||||
"Npgsql": "3.1.3",
|
|
||||||
"Newtonsoft.Json": "9.0.1-beta1",
|
|
||||||
"Microsoft.NETCore.App": {
|
|
||||||
"type": "platform",
|
|
||||||
"version": "1.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"frameworks": {
|
|
||||||
"netcoreapp1.0": { }
|
|
||||||
},
|
|
||||||
"runtimeOptions": {
|
|
||||||
"configProperties": {
|
|
||||||
"System.GC.Server": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user