Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinlacewell committed Jan 21, 2019
1 parent 23cfc9f commit 335ccd1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# stage 1 - build the source
from microsoft/dotnet:2.2-sdk-alpine as builder
workdir /sln
copy . .
run dotnet restore
run dotnet publish -c Release
entrypoint bash


# stage 2 - run the result
from microsoft/dotnet:2.2-runtime-alpine
workdir /app
copy --from=builder /sln/CSharp.lua.Launcher/bin/Release/netcoreapp2.0/* ./
entrypoint ["/usr/bin/dotnet", "CSharp.lua.Launcher.dll"]
cmd ["-s", ".", "-d", "build"]

0 comments on commit 335ccd1

Please sign in to comment.