Open mickaelistria opened 8 years ago
Here is a Dockerfile I've used
FROM fedora:23
RUN dnf install -y --setopt=tsflags=nodocs libunwind libicu curl tar
RUN curl -sSL -o /opt/dotnet.tar.gz https://go.microsoft.com/fwlink/?LinkID=816869
RUN mkdir -p /opt/dotnet
RUN tar zxf /opt/dotnet.tar.gz -C /opt/dotnet
RUN ln -s /opt/dotnet/dotnet /usr/local/bin
RUN curl -sSL -o /opt/omnisharp-fedora-x64-netcoreapp1.0.tar.gz https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v1.9-beta11/omnisharp-fedora-x64-netcoreapp1.0.tar.gz
RUN mkdir -p /opt/OmniSharp
RUN tar zxf /opt/omnisharp-fedora-x64-netcoreapp1.0.tar.gz -C /opt/OmniSharp
RUN chmod +x /opt/OmniSharp/OmniSharp
CMD dotnet --info
CMD /opt/OmniSharp/OmniSharp
A Dockerfile is available at https://github.com/eclipse/che-dockerfiles/blob/master/recipes/centos_dotnet20/Dockerfile
At the moment, it seems to be still a bit complicated to get OmniSharp running on a given OS (especially because of dotnet-core not working on Fedora 24 in my case). In order to make it easier to try OmniSharp, it would be useful to provide some Docker images that would directly start the server.