Skip to content

Commit

Permalink
feat: add Dockerfile and launching script for it
Browse files Browse the repository at this point in the history
  • Loading branch information
vadim-belous committed Jan 17, 2025
1 parent 4b2c9ab commit 3282e86
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM gradle:8.11.1-jdk17-alpine AS build

WORKDIR /src

COPY . .

RUN gradle build shadowJar proguard


FROM openjdk:11

WORKDIR /data

COPY --from=build /src/brut.apktool/apktool-cli/build/libs/apktool-cli.jar /

ENTRYPOINT ["java", "-Xmx1024M", "-Dfile.encoding=utf-8", "-Djdk.util.zip.disableZip64ExtraFieldValidation=true", "-Djdk.nio.zipfs.allowDotZipEntry=true", "-jar", "/apktool-cli.jar"]
5 changes: 5 additions & 0 deletions docker/apktool.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash -i -e

# This one-liner simply passes the command line arguments and binds the workdir as a mount point to it

docker run --rm --name apktool --platform=linux/amd64 --volume $(pwd -P):/data:rw -it apktool:latest "$@"

0 comments on commit 3282e86

Please sign in to comment.