Files
js6pak 3104f57517 Use the new endpoint for getting unity versions
For now, we just get the version+shortRevision but in the future it could replace the whole .ini machinery
2024-11-13 00:53:36 +01:00

16 lines
589 B
Docker

FROM mcr.microsoft.com/dotnet/runtime:8.0-alpine as run
WORKDIR /app
RUN apk add 7zip cpio git elfutils
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine as build
WORKDIR /src/UnityDataMiner
COPY ./UnityDataMiner /src/UnityDataMiner
COPY ./UnityServices /src/UnityServices
RUN dotnet publish -c Release
FROM run
COPY --from=build /src/UnityDataMiner/bin/Release/net8.0/publish /app
VOLUME [ "/data" ]
ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/app/runtimes/alpine.3.9-x64/native"
RUN git config --global --add safe.directory /data
CMD [ "dotnet", "UnityDataMiner.dll", "--repository", "/data" ]