Skip to content

Instantly share code, notes, and snippets.

@ptupitsyn
Created December 21, 2018 17:06
Show Gist options
  • Save ptupitsyn/1cbbdaef1fef7cc4be22addda19cade4 to your computer and use it in GitHub Desktop.
Save ptupitsyn/1cbbdaef1fef7cc4be22addda19cade4 to your computer and use it in GitHub Desktop.
FROM microsoft/dotnet:2.1-sdk
WORKDIR /app
RUN apt update && apt install default-jdk -y --no-install-recommends
COPY *.csproj ./
RUN dotnet restore
COPY . ./
ENTRYPOINT ["dotnet", "run"]
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<RootNamespace>ignite_docker_test</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Apache.Ignite" Version="2.7.0" />
</ItemGroup>
</Project>
using System;
using System.Threading;
using Apache.Ignite.Core;
namespace ignite_docker_test
{
class Program
{
static void Main(string[] args)
{
Ignition.Start();
Thread.Sleep(-1);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment