2018-11-05 17:32:33 +00:00
|
|
|
FROM node AS build-node
|
2018-09-24 21:33:09 +00:00
|
|
|
WORKDIR /app
|
|
|
|
COPY ASF-ui .
|
2018-11-24 13:54:17 +00:00
|
|
|
RUN echo "node: $(node --version)" && \
|
2018-09-24 21:33:09 +00:00
|
|
|
echo "npm: $(npm --version)" && \
|
2018-11-24 13:54:17 +00:00
|
|
|
npm ci && \
|
|
|
|
npm run-script deploy
|
2018-09-24 21:33:09 +00:00
|
|
|
|
2018-12-07 21:04:09 +00:00
|
|
|
FROM microsoft/dotnet:2.2-sdk AS build-dotnet
|
2018-11-24 14:12:36 +00:00
|
|
|
ENV CONFIGURATION Release
|
2018-12-07 21:04:09 +00:00
|
|
|
ENV NET_CORE_VERSION netcoreapp2.2
|
2017-10-06 21:56:39 +00:00
|
|
|
WORKDIR /app
|
2018-09-24 21:33:09 +00:00
|
|
|
COPY --from=build-node /app/dist ASF-ui/dist
|
2018-08-12 01:05:42 +00:00
|
|
|
COPY ArchiSteamFarm ArchiSteamFarm
|
2018-10-05 15:43:50 +00:00
|
|
|
COPY ArchiSteamFarm.Tests ArchiSteamFarm.Tests
|
2018-02-05 03:54:48 +00:00
|
|
|
RUN dotnet --info && \
|
2018-11-24 14:12:36 +00:00
|
|
|
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 && \
|
2019-01-12 01:00:19 +00:00
|
|
|
cp "ArchiSteamFarm/overlay/generic/ArchiSteamFarm.sh" "ArchiSteamFarm/out/publish/ArchiSteamFarm.sh"
|
2017-10-06 21:56:39 +00:00
|
|
|
|
2018-12-07 21:04:09 +00:00
|
|
|
FROM microsoft/dotnet:2.2-runtime-stretch-slim AS runtime
|
2018-09-24 16:01:16 +00:00
|
|
|
ENV ASPNETCORE_URLS=
|
2017-10-14 04:59:22 +00:00
|
|
|
LABEL maintainer="JustArchi <JustArchi@JustArchi.net>"
|
|
|
|
EXPOSE 1242
|
2017-10-06 21:56:39 +00:00
|
|
|
WORKDIR /app
|
2018-10-05 14:06:59 +00:00
|
|
|
COPY --from=build-dotnet /app/ArchiSteamFarm/out/publish .
|
2018-04-17 23:04:28 +00:00
|
|
|
ENTRYPOINT ["./ArchiSteamFarm.sh", "--no-restart", "--process-required", "--system-required"]
|