Created
June 21, 2020 17:18
-
-
Save sn0opy/b66c026dea63d925fc02d68597d44928 to your computer and use it in GitHub Desktop.
il2cppdumper Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG I2CD_VERSION=6.2.1 | |
FROM alpine:3.7 as download | |
ARG I2CD_VERSION | |
RUN wget -O source.zip https://github.com/Perfare/Il2CppDumper/archive/v${I2CD_VERSION}.zip | |
RUN mkdir /dumpersource && unzip -d /dumpersource -q source.zip | |
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine as compile | |
ARG I2CD_VERSION | |
WORKDIR /source | |
COPY --from=download /dumpersource . | |
RUN cd /source/Il2CppDumper-${I2CD_VERSION}/Il2CppDumper && dotnet publish -c release -f netcoreapp3.1 -r linux-musl-x64 --self-contained false | |
FROM mcr.microsoft.com/dotnet/core/runtime:3.1-alpine as base | |
ARG I2CD_VERSION | |
WORKDIR /app | |
COPY graboffset.sh . | |
COPY autooffsets.sh . | |
RUN mkdir dumper | |
COPY --from=compile /source/Il2CppDumper-${I2CD_VERSION}/Il2CppDumper/bin/release/netcoreapp3.1/linux-musl-x64/publish/ dumper/ | |
RUN sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment