Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Øystein Kristoffer Tveit
WikiMathBot
Commits
addc0901
Commit
addc0901
authored
Mar 26, 2021
by
Øystein Kristoffer Tveit
💻
Browse files
Add docker file
parent
2c230408
Changes
2
Hide whitespace changes
Inline
Side-by-side
.dockerignore
0 → 100644
View file @
addc0901
bin
obj
Dockerfile
\ No newline at end of file
Dockerfile
0 → 100644
View file @
addc0901
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment