Skip to content

Commit

Permalink
feat: switch default image to distroless and specify nonroot user
Browse files Browse the repository at this point in the history
  • Loading branch information
vadim-belous authored Jan 18, 2025
1 parent 3282e86 commit 98709b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ COPY . .
RUN gradle build shadowJar proguard


FROM openjdk:11
FROM gcr.io/distroless/java:11

WORKDIR /data

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

USER nonroot

ENTRYPOINT ["java", "-Xmx1024M", "-Dfile.encoding=utf-8", "-Djdk.util.zip.disableZip64ExtraFieldValidation=true", "-Djdk.nio.zipfs.allowDotZipEntry=true", "-jar", "/apktool-cli.jar"]

0 comments on commit 98709b8

Please sign in to comment.