summaryrefslogtreecommitdiff
path: root/packaging/docker/catlfish-merge/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/docker/catlfish-merge/Dockerfile')
-rw-r--r--packaging/docker/catlfish-merge/Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/docker/catlfish-merge/Dockerfile b/packaging/docker/catlfish-merge/Dockerfile
index a56ae39..a3b55f4 100644
--- a/packaging/docker/catlfish-merge/Dockerfile
+++ b/packaging/docker/catlfish-merge/Dockerfile
@@ -26,10 +26,9 @@ VOLUME /var/local/db/catlfish-merge
RUN mkdir -p /usr/local/catlfish/bin
ADD merge.sh /usr/local/catlfish/bin/
-# Don't run as root.
+# Create a catlfish user.
RUN groupadd --gid 147 catlfish
RUN useradd --uid 147 --gid 147 catlfish
-USER catlfish
# We run from /var/run/catlfish.
RUN mkdir /var/run/catlfish
@@ -39,4 +38,5 @@ WORKDIR /var/run/catlfish
# Run supervisord.
ADD supervisord.conf /etc/supervisor/
+USER catlfish
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]