add docker build env

This commit was merged in pull request #1.
This commit is contained in:
2026-07-07 22:26:21 +02:00
parent 16f3abf51b
commit 11922d7199
9 changed files with 36 additions and 0 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM alpine
RUN apk add --no-cache \
openjdk17-jre \
wget \
bash \
patch
RUN wget -O /usr/local/bin/apktool \
https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool && \
wget -O /usr/local/bin/apktool.jar \
https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_3.0.2.jar && \
chmod +x /usr/local/bin/apktool.jar && \
chmod +x /usr/local/bin/apktool
WORKDIR /data
CMD ["tail", "-f", "/dev/null"]

View File

@@ -57,3 +57,11 @@ Decompile the same APK to `./out_orig/` and do you chancges in `./out/`
sh generate_patch_diff.sh
```
You may want to add a different app version like `android:versionCode='18101' android:versionName='3.8.1_2026.7.7'` to the `AndroidManifest.xml` file, otherwise the version which will be displayed in app info will be `3.8.1`.
## Docker
The docker image contains all needed tools to decompile/compile an APK.
- Build the image: `docker compose build`
- Run the container: `docker compose up -d`
- Enter the container: `docker compose exec bejeweled-env bash`

10
compose.yml Normal file
View File

@@ -0,0 +1,10 @@
services:
bejeweled-env:
container_name: bejeweled_env
image: bejeweled-env:1.0
stop_grace_period: "1s"
build:
context: .
dockerfile: Dockerfile
volumes:
- ./src:/data:rw