mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
Add Dockerfile
Based on https://github.com/dotnet/dotnet-docker-samples
This commit is contained in:
parent
c1d934ba00
commit
7a3bc2c22f
1 changed files with 16 additions and 0 deletions
16
Dockerfile
Normal file
16
Dockerfile
Normal file
|
@ -0,0 +1,16 @@
|
|||
FROM microsoft/dotnet:2.0-sdk AS build-env
|
||||
WORKDIR /app
|
||||
|
||||
# copy csproj and restore as distinct layers
|
||||
COPY *.csproj ./
|
||||
RUN dotnet restore
|
||||
|
||||
# copy everything else and build
|
||||
COPY . ./
|
||||
RUN dotnet publish -c Release -o out --no-restore /nologo
|
||||
|
||||
# build runtime image
|
||||
FROM microsoft/dotnet:2.0-runtime
|
||||
WORKDIR /app
|
||||
COPY --from=build-env /app/out ./
|
||||
ENTRYPOINT ["dotnet", "ArchiSteamFarm.dll"]
|
Loading…
Reference in a new issue