Upload files to "/"

This commit is contained in:
2025-05-27 16:07:21 +00:00
commit 4b624aea17
2 changed files with 644 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
ARG BUILD_TOOLS_VERSION="36.0.0"
ARG APKTOOL_VERSION="2.11.1"
FROM python:3.13-slim
ARG BUILD_TOOLS_VERSION
ARG APKTOOL_VERSION
WORKDIR /xapktoapk
COPY xapktoapk.py docker/entrypoint.sh ./
RUN chmod +x ./entrypoint.sh
# Dependencies: wget, java, keytool, zipalign, apksigner, apktool
RUN apt update && apt -y install wget sdkmanager default-jdk-headless
RUN sdkmanager --install "build-tools;${BUILD_TOOLS_VERSION}"
ENV PATH="$PATH:/opt/android-sdk/build-tools/${BUILD_TOOLS_VERSION}"
RUN \
wget -q https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool -O /usr/local/bin/apktool && \
wget -q https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_${APKTOOL_VERSION}.jar -O /usr/local/bin/apktool.jar && \
chmod +x /usr/local/bin/apktool /usr/local/bin/apktool.jar
ENTRYPOINT [ "./entrypoint.sh" ]