BotSharp/Dockerfile

21 lines
468 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
2018-09-20 21:18:34 +00:00
RUN dotnet publish /p:PublishProfile=RASA /p:Configuration=RASA --output /app
2018-08-13 16:12:10 +00:00
2018-09-13 21:52:19 +00:00
# copy Settings folder
2018-09-20 21:18:34 +00:00
WORKDIR /app
COPY Settings Settings
RUN mkdir App_Data/Projects
2018-09-13 21:52:19 +00:00
2018-09-20 21:18:34 +00:00
# move data for jieba.NetCore
# RUN mv App_Data/Resources Resources
# RUN mv App_Data/userdict.txt userdict.txt
2018-08-23 15:20:32 +00:00
# stage 2: run
2018-08-23 15:20:32 +00:00
ENTRYPOINT [ "dotnet", "BotSharp.WebHost.dll" ]