Skip to content
Snippets Groups Projects
Commit addc0901 authored by Øystein Kristoffer Tveit's avatar Øystein Kristoffer Tveit :beginner:
Browse files

Add docker file

parent 2c230408
Branches
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment