Skip to content

Commit

Permalink
Run as bashttpd user
Browse files Browse the repository at this point in the history
Fixes the warning from bashttpd that it should not be run as root
  • Loading branch information
TooTallNate committed Jun 1, 2018
1 parent 9fbde4e commit df8d7af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM alpine:3.6
RUN addgroup -g 1000 -S bashttpd && \
adduser -u 1000 -S bashttpd -G bashttpd
WORKDIR /home/bashttpd
RUN apk add --no-cache bash socat
COPY . .
CMD ["socat", "TCP4-LISTEN:8080,fork", "EXEC:/bashttpd"]
USER bashttpd
CMD ["socat", "TCP4-LISTEN:8080,fork", "EXEC:./bashttpd"]

0 comments on commit df8d7af

Please sign in to comment.