Skip to content

Commit

Permalink
build: update Dockerfile
Browse files Browse the repository at this point in the history
includes:

* use major version of Python
* remove openjdk image as base

Signed-off-by: Dwi Siswanto <[email protected]>
  • Loading branch information
dwisiswant0 committed May 17, 2024
1 parent 183e407 commit 77d32f8
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
FROM python:3.8-slim-buster as build
FROM python:3-slim

LABEL description="Scanning APK file for URIs, endpoints & secrets."
LABEL repository="https://github.com/dwisiswant0/apkleaks"
LABEL maintainer="dwisiswant0"

WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY . .

FROM openjdk:slim-buster
COPY requirements.txt .
RUN python -m ensurepip
RUN pip install -r requirements.txt
COPY . .

COPY --from=build / /
ENTRYPOINT ["/app/apkleaks.py"]
ENTRYPOINT ["python", "/app/apkleaks.py"]

0 comments on commit 77d32f8

Please sign in to comment.