Skip to content

Commit 4a9fb0d

Browse files
committed
fix: use line-before NOSONAR comments in Dockerfile
Dockerfile doesn't support inline comments after arguments.
1 parent 48ebe37 commit 4a9fb0d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
FROM python:alpine # NOSONAR
1+
# NOSONAR:docker:S6471 - Explicit non-root USER instruction follows
2+
FROM python:alpine
23

34
# Create non-root user for security
45
RUN adduser -D -u 1000 gixy
56

6-
COPY . /src # NOSONAR
7+
# NOSONAR:docker:S6470 - .dockerignore excludes sensitive files
8+
COPY . /src
79

810
WORKDIR /src
911

0 commit comments

Comments
 (0)