mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 15:14:41 +00:00
28 lines
1.2 KiB
Docker
28 lines
1.2 KiB
Docker
FROM node AS build-node
|
|
WORKDIR /app
|
|
COPY ASF-ui .
|
|
RUN echo "node: $(node --version)" && \
|
|
echo "npm: $(npm --version)" && \
|
|
npm ci && \
|
|
npm run-script deploy
|
|
|
|
FROM microsoft/dotnet:2.1-sdk AS build-dotnet
|
|
ENV CONFIGURATION Release
|
|
ENV NET_CORE_VERSION netcoreapp2.1
|
|
WORKDIR /app
|
|
COPY --from=build-node /app/dist ASF-ui/dist
|
|
COPY ArchiSteamFarm ArchiSteamFarm
|
|
COPY ArchiSteamFarm.Tests ArchiSteamFarm.Tests
|
|
RUN dotnet --info && \
|
|
dotnet build ArchiSteamFarm -c "$CONFIGURATION" -f "$NET_CORE_VERSION" -o 'out/source' /nologo && \
|
|
dotnet test ArchiSteamFarm.Tests -c "$CONFIGURATION" -f "$NET_CORE_VERSION" -o 'out/source' /nologo && \
|
|
dotnet publish ArchiSteamFarm -c "$CONFIGURATION" -f "$NET_CORE_VERSION" -o 'out/publish' /nologo /p:ASFVariant=docker /p:LinkDuringPublish=false && \
|
|
cp "ArchiSteamFarm/scripts/generic/ArchiSteamFarm.sh" "ArchiSteamFarm/out/publish/ArchiSteamFarm.sh"
|
|
|
|
FROM microsoft/dotnet:2.1-runtime-stretch-slim-arm32v7 AS runtime
|
|
ENV ASPNETCORE_URLS=
|
|
LABEL maintainer="JustArchi <JustArchi@JustArchi.net>"
|
|
EXPOSE 1242
|
|
WORKDIR /app
|
|
COPY --from=build-dotnet /app/ArchiSteamFarm/out/publish .
|
|
ENTRYPOINT ["./ArchiSteamFarm.sh", "--no-restart", "--process-required", "--system-required"]
|