mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
17 lines
389 B
Docker
17 lines
389 B
Docker
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"]
|