Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" ] |