This repository has been archived on 2024-07-04. You can view files and clone it, but cannot push or open issues or pull requests.
wiki-math-bot/Dockerfile
2021-03-26 23:41:22 +01:00

15 lines
308 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
# build application
WORKDIR /src/Bot
COPY . .
RUN dotnet restore
RUN dotnet publish -c release -o /app --no-self-contained --no-restore
# final stage/image
FROM mcr.microsoft.com/dotnet/runtime:5.0
WORKDIR /app
COPY --from=build /app .
ENTRYPOINT ["./Bot"]