Skip to content

Instantly share code, notes, and snippets.

@sn0opy
Created June 21, 2020 17:18
Show Gist options
  • Save sn0opy/b66c026dea63d925fc02d68597d44928 to your computer and use it in GitHub Desktop.
Save sn0opy/b66c026dea63d925fc02d68597d44928 to your computer and use it in GitHub Desktop.
il2cppdumper Dockerfile
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