From 9b8e5853ed9eb4550b29f0c0b0076040588e393f Mon Sep 17 00:00:00 2001 From: Mazin Ahmed Date: Tue, 14 Dec 2021 13:25:44 +0400 Subject: [PATCH] updated dockerfile --- Dockerfile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index e630c0d..0f821cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,12 @@ -# Ref: https://devguide.python.org/#branchstatus -FROM python:3.10-slim-bullseye +FROM python:3-alpine -RUN useradd -ms /bin/bash appuser -USER appuser WORKDIR /app -COPY --chown=appuser:appuser requirements.txt requirements.txt +COPY requirements.txt requirements.txt +RUN apk add gcc g++ make libffi-dev openssl-dev RUN pip3 install -r requirements.txt -ENV PATH="/home/appuser/.local/bin:${PATH}" +COPY . . -COPY --chown=appuser:appuser ./ ./ - -ENTRYPOINT ["python", "log4j-scan.py" ] \ No newline at end of file +ENTRYPOINT ["python", "log4j-scan.py" ]