Skip to content

Commit 2ce1ee3

Browse files
committed
Security scans
1 parent b1ea722 commit 2ce1ee3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# Run: docker run -it --rm fingr:latest
33

44
FROM ubuntu:24.04
5-
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
5+
COPY --from=ghcr.io/astral-sh/uv:sha256:15f68a476b768083505fe1dbfcc998344d0135f0ca1b8465c4760b323904f05a /uv /uvx /bin/
66

7-
RUN apt-get update && apt-get install -y \
7+
RUN apt-get update && apt-get install -y --no-install-recommends \
88
gcc \
99
g++ \
1010
libgfortran5 \
@@ -16,7 +16,7 @@ WORKDIR /app
1616
RUN useradd --home-dir=/app fingr && chown -R fingr /app
1717
USER fingr
1818

19-
COPY pyproject.toml uv.lock .
19+
COPY pyproject.toml uv.lock ./
2020

2121
# Install dependencies with uv
2222
# UV_COMPILE_BYTECODE: Precompile Python files to .pyc for faster startup

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ Or with pip:
9393
## More
9494

9595
* Previous version: <https://github.com/ways/pyyrascii>
96+
* Scan dockerfile: `docker run --rm -it -v ./:/mnt aquasec/trivy fs --exit-code 1 --scanners vuln,secret,license,misconfig /mnt/Dockerfile`
97+
* Scan image: `docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock aquasec/trivy image --db-repository public.ecr.aws/aquasecurity/trivy-db --java-db-repository public.ecr.aws/aquasecurity/trivy-java-db --severity HIGH,CRITICAL fingr`
9698

9799
## TODO
98100

0 commit comments

Comments
 (0)