Skip to content

Commit

Permalink
Dockerfile: run daemon as unprivileged user
Browse files Browse the repository at this point in the history
  • Loading branch information
Domenico Iezzi committed Dec 6, 2018
1 parent c3c9474 commit f3828fd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ WORKDIR /opt/playmaker
RUN pip3 install . && \
cd /opt && rm -rf playmaker

RUN groupadd -g 999 pmuser && \
useradd -m -u 999 -g pmuser pmuser
RUN chown -R pmuser:pmuser /data/fdroid && \
chown -R pmuser:pmuser /opt/playmaker
USER pmuser

VOLUME /data/fdroid
WORKDIR /data/fdroid

Expand Down

0 comments on commit f3828fd

Please sign in to comment.