ArchiSteamFarm/Dockerfile.arm
JustArchi 29129810ba Misc
2018-09-14 05:33:01 +02:00

14 lines
663 B
Docker

FROM microsoft/dotnet:2.1-sdk AS build
ENV NET_CORE_VERSION netcoreapp2.1
WORKDIR /app
COPY ArchiSteamFarm ArchiSteamFarm
RUN dotnet --info && \
dotnet publish ArchiSteamFarm -c Release -f "$NET_CORE_VERSION" -o out /nologo /p:ASFVariant=docker /p:LinkDuringPublish=false && \
cp "ArchiSteamFarm/scripts/generic/ArchiSteamFarm.sh" "ArchiSteamFarm/out/ArchiSteamFarm.sh"
FROM microsoft/dotnet:2.1-runtime-stretch-slim-arm32v7 AS runtime
LABEL maintainer="JustArchi <JustArchi@JustArchi.net>"
EXPOSE 1242
WORKDIR /app
COPY --from=build /app/ArchiSteamFarm/out .
ENTRYPOINT ["./ArchiSteamFarm.sh", "--no-restart", "--process-required", "--system-required"]