From 92ba88abb846adc1ba2c8e2c26df6d10944a8ff9 Mon Sep 17 00:00:00 2001 From: Nanahira <78877@qq.com> Date: Sun, 9 Jun 2019 13:45:28 +0800 Subject: [PATCH] Add a Dockerfile --- Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Dockerfile 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" ]