Skip to content

Commit

Permalink
Added passwd and group file to enable execution with nobody:nogroup
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Straub committed Dec 29, 2022
1 parent f379dce commit a4e7e1b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/restService/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o restService -ldflags="-w -
FROM scratch
WORKDIR /
COPY --from=build /app/restService /restService
COPY docker/passwd /etc/passwd
COPY docker/group /etc/group

EXPOSE 7777
ENTRYPOINT [ "/restService" ]
1 change: 1 addition & 0 deletions src/restService/docker/group
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nogroup:x:65534:
1 change: 1 addition & 0 deletions src/restService/docker/passwd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin

0 comments on commit a4e7e1b

Please sign in to comment.