mirror of
https://github.com/BepInEx/UnityDataMiner.git
synced 2026-11-21 07:29:25 -10:00
17 lines
573 B
Docker
17 lines
573 B
Docker
FROM mcr.microsoft.com/dotnet/runtime:6.0-alpine as run
|
|
WORKDIR /app
|
|
RUN apk add p7zip cpio git elfutils
|
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine as build
|
|
WORKDIR /src
|
|
COPY ./UnityDataMiner/UnityDataMiner.csproj /src
|
|
RUN dotnet restore
|
|
COPY ./UnityDataMiner /src
|
|
RUN dotnet publish -c Release
|
|
|
|
FROM run
|
|
COPY --from=build /src/bin/Release/net6.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" ] |