Fix docker images

This commit is contained in:
JustArchi 2018-06-03 08:00:32 +02:00
parent a515de5807
commit f0b920f427
4 changed files with 8 additions and 4 deletions

View file

@ -1,8 +1,9 @@
FROM microsoft/dotnet:2.0-sdk AS build-env
ENV NET_CORE_VERSION netcoreapp2.0
WORKDIR /app
COPY . ./
RUN dotnet --info && \
dotnet publish ArchiSteamFarm -c Release -o out /nologo /p:ASFVariant=generic && \
dotnet publish ArchiSteamFarm -c Release -f "$NET_CORE_VERSION" -o out /nologo /p:ASFVariant=generic && \
cp "ArchiSteamFarm/scripts/generic/ArchiSteamFarm-Service.sh" "ArchiSteamFarm/out/ArchiSteamFarm-Service.sh"
FROM microsoft/dotnet:2.0-runtime-stretch-arm32v7

View file

@ -1,8 +1,9 @@
FROM microsoft/dotnet:2.0-sdk AS build-env
ENV NET_CORE_VERSION netcoreapp2.0
WORKDIR /app
COPY . ./
RUN dotnet --info && \
dotnet publish ArchiSteamFarm -c Release -o out /nologo /p:ASFVariant=generic && \
dotnet publish ArchiSteamFarm -c Release -f "$NET_CORE_VERSION" -o out /nologo /p:ASFVariant=generic && \
cp "ArchiSteamFarm/scripts/generic/ArchiSteamFarm-Service.sh" "ArchiSteamFarm/out/ArchiSteamFarm-Service.sh"
FROM microsoft/dotnet:2.0-runtime

View file

@ -1,8 +1,9 @@
FROM microsoft/dotnet:2.0-sdk AS build-env
ENV NET_CORE_VERSION netcoreapp2.0
WORKDIR /app
COPY . ./
RUN dotnet --info && \
dotnet publish ArchiSteamFarm -c Release -o out /nologo /p:ASFVariant=docker && \
dotnet publish ArchiSteamFarm -c Release -f "$NET_CORE_VERSION" -o out /nologo /p:ASFVariant=docker && \
cp "ArchiSteamFarm/scripts/generic/ArchiSteamFarm.sh" "ArchiSteamFarm/out/ArchiSteamFarm.sh"
FROM microsoft/dotnet:2.0-runtime-stretch-arm32v7

View file

@ -1,8 +1,9 @@
FROM microsoft/dotnet:2.0-sdk AS build-env
ENV NET_CORE_VERSION netcoreapp2.0
WORKDIR /app
COPY . ./
RUN dotnet --info && \
dotnet publish ArchiSteamFarm -c Release -o out /nologo /p:ASFVariant=docker && \
dotnet publish ArchiSteamFarm -c Release -f "$NET_CORE_VERSION" -o out /nologo /p:ASFVariant=docker && \
cp "ArchiSteamFarm/scripts/generic/ArchiSteamFarm.sh" "ArchiSteamFarm/out/ArchiSteamFarm.sh"
FROM microsoft/dotnet:2.0-runtime