As mentioned in #4, mono fails with an error when starting on a server. I've come as far as determining it's caused by this line, which assumes a graphical interface (/browser) is present. More specifically, I'm trying to run this as a Docker container for which I currently have:
FROM debian:jessie-slim
ENV MONO_VERSION 5.2.0.215
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
RUN echo "deb http://download.mono-project.com/repo/debian jessie/snapshots/$MONO_VERSION main" > /etc/apt/sources.list.d/mono-official.list \
&& apt-get update \
&& apt-get install -y mono-complete \
&& apt-get install -y wget \
&& rm -rf /var/lib/apt/lists/* /tmp/*
RUN wget https://github.com/ServiceStackApps/RedisReact/raw/master/dist/RedisReact-console.exe
RUN mkdir -p /app && mv RedisReact-console.exe /app
WORKDIR /app
EXPOSE 2337
RUN mono --version
RUN mono ./RedisReact-console.exe
The mono setup is simply copy pasted from the official mono image, except for replacing the mono version with mono-complete.
The error I'm getting is exactly the same as in #4. Perhaps there is a way to try { } catch () { } this line?
As mentioned in #4,
monofails with an error when starting on a server. I've come as far as determining it's caused by this line, which assumes a graphical interface (/browser) is present. More specifically, I'm trying to run this as aDockercontainer for which I currently have:The
monosetup is simply copy pasted from the officialmonoimage, except for replacing the mono version withmono-complete.The error I'm getting is exactly the same as in #4. Perhaps there is a way to
try { } catch () { }this line?