BotSharp/Dockerfile

21 lines
489 B
Docker
Raw Normal View History

2018-08-13 16:12:10 +00:00
# stage 1: build
FROM microsoft/dotnet AS botsharp
2018-08-13 16:12:10 +00:00
WORKDIR /source
# copies the rest of your code
2018-08-13 16:12:10 +00:00
COPY . .
RUN dotnet build
RUN dotnet publish --output /app/ --configuration Debug
2018-08-13 16:12:10 +00:00
2018-08-23 15:20:32 +00:00
# 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
2018-08-13 12:26:12 +00:00
WORKDIR /app
2018-08-23 15:20:32 +00:00
ENTRYPOINT [ "dotnet", "BotSharp.WebHost.dll" ]