Skip to content

Instantly share code, notes, and snippets.

@megamorf
Last active December 4, 2023 03:26
Show Gist options
  • Save megamorf/3904ffab3d94e473781ac60f93d144a5 to your computer and use it in GitHub Desktop.
Save megamorf/3904ffab3d94e473781ac60f93d144a5 to your computer and use it in GitHub Desktop.
APKTOOL Dockerfile
FROM openjdk:8-alpine
RUN apk update && apk --no-cache add curl bash xmlstarlet
VOLUME ["/app"]
WORKDIR /app
ARG APKTOOL_VERSION="2.3.4"
RUN curl -sLO https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool \
&& curl -sL -o apktool.jar https://github.com/iBotPeaches/Apktool/releases/download/v${APKTOOL_VERSION}/apktool_${APKTOOL_VERSION}.jar \
&& chmod +x apktool* \
&& mv apktool* /usr/local/bin/
ENTRYPOINT ["apktool"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment