Skip to content

Commit fbd256f

Browse files
Kamilcuktristanmorgan
authored andcommitted
Dockerfile: set user nobody:nogroup
1 parent ecf7936 commit fbd256f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ RUN setcap cap_net_bind_service=+ep /src/fabio
1919
FROM alpine:3.16
2020
RUN apk update && apk add --no-cache ca-certificates
2121
COPY --from=build /src/fabio /usr/bin
22-
ADD fabio.properties /etc/fabio/fabio.properties
22+
COPY --chown=nobody:nogroup fabio.properties /etc/fabio/fabio.properties
23+
USER nobody:nogroup
2324
EXPOSE 9998 9999
2425
ENTRYPOINT ["/usr/bin/fabio"]
2526
CMD ["-cfg", "/etc/fabio/fabio.properties"]

0 commit comments

Comments
 (0)