BotSharp/Dockerfile

14 lines
326 B
Docker
Raw Normal View History

2018-08-13 16:12:10 +00:00
# stage 1: build
FROM microsoft/aspnetcore-build AS builder
WORKDIR /source
# copies the rest of your code
COPY . .
RUN dotnet build
RUN dotnet publish --output /app/ --configuration Release
# stage 2: install
2018-08-13 12:26:12 +00:00
FROM microsoft/aspnetcore
WORKDIR /app
2018-08-13 16:12:10 +00:00
COPY --from=builder /app .
ENTRYPOINT [ "dotnet", "BotSharp.WebHost.dll" ]