|
| 1 | +FROM almalinux:9.2-minimal |
| 2 | + |
| 3 | +LABEL maintainer="appthreat" \ |
| 4 | + org.opencontainers.image.authors= "Team AppThreat <[email protected]>" \ |
| 5 | + org.opencontainers.image.source="https://github.com/AppThreat/blint" \ |
| 6 | + org.opencontainers.image.url="https://github.com/AppThreat/blint" \ |
| 7 | + org.opencontainers.image.version="1.0.31" \ |
| 8 | + org.opencontainers.image.vendor="AppThreat" \ |
| 9 | + org.opencontainers.image.licenses="Apache-2.0" \ |
| 10 | + org.opencontainers.image.title="blint" \ |
| 11 | + org.opencontainers.image.description="BLint is a Binary Linter to check the security properties, and capabilities in your executables. It is powered by lief." \ |
| 12 | + org.opencontainers.docker.cmd="docker run --rm -it -v /tmp:/tmp -v $(pwd):/app:rw -w /app -t ghcr.io/appthreat/blint" |
| 13 | + |
| 14 | +ARG TARGETPLATFORM |
| 15 | +ARG JAVA_VERSION=22.3.r19-grl |
| 16 | +ARG SBT_VERSION=1.9.0 |
| 17 | +ARG MAVEN_VERSION=3.9.2 |
| 18 | +ARG GRADLE_VERSION=8.1.1 |
| 19 | + |
| 20 | +ENV GOPATH=/opt/app-root/go \ |
| 21 | + GO_VERSION=1.20.4 \ |
| 22 | + JAVA_VERSION=$JAVA_VERSION \ |
| 23 | + SBT_VERSION=$SBT_VERSION \ |
| 24 | + MAVEN_VERSION=$MAVEN_VERSION \ |
| 25 | + GRADLE_VERSION=$GRADLE_VERSION \ |
| 26 | + GRADLE_OPTS="-Dorg.gradle.daemon=false" \ |
| 27 | + JAVA_HOME="/opt/java/${JAVA_VERSION}" \ |
| 28 | + MAVEN_HOME="/opt/maven/${MAVEN_VERSION}" \ |
| 29 | + GRADLE_HOME="/opt/gradle/${GRADLE_VERSION}" \ |
| 30 | + SBT_HOME="/opt/sbt/${SBT_VERSION}" \ |
| 31 | + COMPOSER_ALLOW_SUPERUSER=1 \ |
| 32 | + PYTHONUNBUFFERED=1 \ |
| 33 | + PYTHONIOENCODING="utf-8" |
| 34 | +ENV PATH=${PATH}:${JAVA_HOME}/bin:${MAVEN_HOME}/bin:${GRADLE_HOME}/bin:${SBT_HOME}/bin:${GOPATH}/bin:/usr/local/go/bin:/usr/local/bin/:/root/.local/bin: |
| 35 | + |
| 36 | +COPY . /opt/blint |
| 37 | + |
| 38 | +RUN microdnf install -y python3.11 python3.11-pip \ |
| 39 | + && alternatives --install /usr/bin/python3 python /usr/bin/python3.11 1 \ |
| 40 | + && python3 --version \ |
| 41 | + && python3 -m pip install --upgrade pip \ |
| 42 | + && cd /opt/blint \ |
| 43 | + && python3 -m pip install -e . \ |
| 44 | + && chmod a-w -R /opt \ |
| 45 | + && microdnf clean all |
| 46 | + |
| 47 | +WORKDIR /app |
| 48 | + |
| 49 | +ENTRYPOINT [ "blint" ] |
0 commit comments