15 lines
308 B
Docker
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"]
|