mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 15:14:41 +00:00
83bce52f09
It looks like ASF-ui can compile just fine under slim package for now, we can always change to full when needed
24 lines
951 B
Docker
24 lines
951 B
Docker
FROM node:slim AS build-node
|
|
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
|
|
WORKDIR /app
|
|
COPY --from=build-node /app/dist ASF-ui/dist
|
|
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
|
|
ENV ASPNETCORE_URLS=
|
|
LABEL maintainer="JustArchi <JustArchi@JustArchi.net>"
|
|
EXPOSE 1242
|
|
WORKDIR /app
|
|
COPY --from=build-dotnet /app/ArchiSteamFarm/out .
|
|
ENTRYPOINT ["./ArchiSteamFarm.sh", "--no-restart", "--process-required", "--system-required"]
|