diff options
Diffstat (limited to 'packaging/docker/catlfish-dev/Dockerfile')
-rw-r--r-- | packaging/docker/catlfish-dev/Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/docker/catlfish-dev/Dockerfile b/packaging/docker/catlfish-dev/Dockerfile index 6c5c72e..6eff721 100644 --- a/packaging/docker/catlfish-dev/Dockerfile +++ b/packaging/docker/catlfish-dev/Dockerfile @@ -46,10 +46,9 @@ RUN make -C catlfish PREFIX=/usr/local all release VOLUME /usr/local/etc/catlfish VOLUME /var/local/db/catlfish -# Don't run as root. +# Create a catlfish user. RUN groupadd --gid 147 catlfish RUN useradd --uid 147 --gid 147 catlfish -USER catlfish # Working has to be where catlfish.config is. We want to run in # /var/run/catlfish and not in /usr/local/etc/catlfish, so symlink. @@ -60,4 +59,5 @@ WORKDIR /var/run/catlfish # Run supervisord. ADD supervisord.conf /etc/supervisor/ +USER catlfish CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"] |