mirror of
https://github.com/BepInEx/UnityDataMiner.git
synced 2026-11-21 07:29:25 -10:00
For now, we just get the version+shortRevision but in the future it could replace the whole .ini machinery
16 lines
589 B
Docker
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" ] |