Skip to content

Commit

Permalink
updated dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mazen160 committed Dec 14, 2021
1 parent 5997fff commit 9b8e585
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions 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" ]
ENTRYPOINT ["python", "log4j-scan.py" ]

0 comments on commit 9b8e585

Please sign in to comment.