diff --git a/Dockerfile b/Dockerfile index ed8c3ab..1b90ef4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,13 @@ -FROM mono:4.6 -MAINTAINER Maksym Prokopov -#RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF -#RUN echo "deb http://download.mono-project.com/repo/debian wheezy main" | tee /etc/apt/sources.list.d/mono-xamarin.list -#RUN apt-get update -qq && apt-get -yf install mono-complete wget -RUN mkdir /manager /data -WORKDIR /manager +FROM mono:6.8 + +RUN apt-get update && apt-get install wget unzip -ADD libe_sqlite3.so . -#this is manually compiled libe_sqlite3 version -#to clear curl cache bump version -ENV MANAGER_VER 16.12.56 +COPY init.sh / -RUN curl -O https://mngr.s3.amazonaws.com/ManagerServer.tar.gz \ - && tar -xzf ManagerServer.tar.gz \ - && rm ManagerServer.tar.gz -CMD mono ManagerServer.exe -port 8080 -path "/data" +RUN mkdir /manager /data +WORKDIR /manager VOLUME ["/data"] EXPOSE 8080 +ENTRYPOINT ["/init.sh"] \ No newline at end of file diff --git a/init.sh b/init.sh new file mode 100755 index 0000000..d2e34f6 --- /dev/null +++ b/init.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +wget https://github.com/Manager-io/Manager.zip/releases/latest/download/Manager.zip -O Manager.zip + +unzip Manager.zip + +rm -f Manager.zip + +mono ManagerServer.exe -port 8080 -path "/data" \ No newline at end of file