ArchiSteamFarm/Dockerfile.Service.x64

26 lines
1.1 KiB
Docker
Raw Normal View History

FROM node:slim AS build-node
2018-09-24 21:33:09 +00:00
WORKDIR /app
COPY ASF-ui .
RUN echo "Node.js: $(node --version)" && \
echo "npm: $(npm --version)" && \
npm ci --no-progress && \
npm run-script deploy --no-progress
FROM microsoft/dotnet:2.1-sdk AS build-dotnet
ENV NET_CORE_VERSION netcoreapp2.1
2017-10-07 15:26:08 +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-02-05 03:54:48 +00:00
RUN dotnet --info && \
2018-10-05 14:06:59 +00:00
dotnet test ArchiSteamFarm.Tests -c Release -f "$NET_CORE_VERSION" -o out/test /nologo && \
dotnet publish ArchiSteamFarm -c Release -f "$NET_CORE_VERSION" -o out/publish /nologo /p:ASFVariant=generic /p:LinkDuringPublish=false && \
cp "ArchiSteamFarm/scripts/generic/ArchiSteamFarm-Service.sh" "ArchiSteamFarm/out/publish/ArchiSteamFarm-Service.sh"
2017-10-07 15:26:08 +00:00
2018-08-12 01:05:42 +00:00
FROM microsoft/dotnet:2.1-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-07 15:26:08 +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-Service.sh", "--no-restart", "--process-required", "--system-required"]