Commit addc0901 authored by Øystein Kristoffer Tveit's avatar Øystein Kristoffer Tveit 💻
Browse files

Add docker file

parent 2c230408
bin
obj
Dockerfile
\ No newline at end of file
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"]
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment