diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..74ef70b0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM mono + +COPY . /windbot-source +WORKDIR /windbot-source +RUN xbuild /p:Configuration=Release /p:TargetFrameworkVersion=v4.5 /p:OutDir=/windbot/ + +WORKDIR /windbot +RUN curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/moecube/ygopro-database/raw/master/locales/zh-CN/cards.cdb + +EXPOSE 2399 +CMD [ "mono", "/windbot/WindBot.exe", "ServerMode=true", "ServerPort=2399" ]