10 lines
229 B
Docker
10 lines
229 B
Docker
FROM alpine:latest
|
|
|
|
RUN apk --no-cache add netcat-openbsd iputils-ping
|
|
|
|
# add a user for running netcat in the container
|
|
RUN addgroup netcat && adduser -u 8888 -D -G netcat netcat
|
|
|
|
# run everything as the netcat user
|
|
USER netcat
|