Skip to content

Commit

Permalink
add user for docker runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Oct 28, 2023
1 parent 670560e commit ec96bf4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ WORKDIR /app
COPY --from=builder /app/ /app/

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends libssl-dev libasound2 libgtk-3-0 libxtst6 libpulse0 librtmp1 avahi-utils \
&& useradd -M user \
&& apt-get clean && rm -rf /var/lib/apt/lists/ \
&& ./webrtc-streamer -V

USER user

ENTRYPOINT [ "./webrtc-streamer" ]
CMD [ "-C", "config.json" ]
4 changes: 4 additions & 0 deletions Dockerfile.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,9 @@ FROM $IMAGE
WORKDIR /app
COPY --from=builder /app/ /app/

RUN useradd -M user

USER user

ENTRYPOINT [ "./webrtc-streamer" ]
CMD [ "-a", "-C", "config.json" ]

0 comments on commit ec96bf4

Please sign in to comment.