remove DataAnnotation and update Dockerfile

This commit is contained in:
tsun 2018-08-22 20:21:00 -05:00
parent 74d884be2f
commit 0244de73d7
5 changed files with 1656 additions and 1650 deletions

View file

@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

View file

@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace BotSharp.MachineLearning.CRFLite.Encoder

File diff suppressed because it is too large Load diff

View file

@ -26,7 +26,7 @@ namespace BotSharp.WebHost
});
})
#if MODE_RASA
.UseUrls("http://0.0.0.0:5000")
.UseUrls("http://0.0.0.0:5000")
#else
.UseUrls("http://0.0.0.0:3112")
#endif

View file

@ -7,6 +7,14 @@ COPY . .
RUN dotnet build
RUN dotnet publish --output /app/ --configuration Debug
# install facebookresearch fasttext
RUN wget https://github.com/facebookresearch/fastText/archive/v0.1.0.zip
RUN apt-get update
RUN apt-get install -y unzip make g++
RUN unzip v0.1.0.zip
WORKDIR /source/fastText-0.1.0/
RUN make
# stage 2: run
WORKDIR /app
ENTRYPOINT [ "dotnet", "BotSharp.WebHost.dll" ]