From ec8bb85c35a322522182962f55efa60a93ab1386 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Wed, 3 Aug 2016 12:22:48 +0200 Subject: [PATCH] correct file owner --- Dockerfile | 4 ++-- rootfs/etc/confd/conf.d/server.yaml.toml | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b130963..3ab0526 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,8 @@ FROM thallian/confd-env:latest ENV VERSION v0.17.0-rc1 -RUN addgroup synapse -RUN adduser -h /var/lib/synapse -D -G synapse synapse +RUN addgroup -g 2222 synapse +RUN adduser -h /var/lib/synapse -u 2222 -D -G synapse synapse RUN apk add --no-cache \ openssl \ diff --git a/rootfs/etc/confd/conf.d/server.yaml.toml b/rootfs/etc/confd/conf.d/server.yaml.toml index 8ba675c..ae80ed8 100644 --- a/rootfs/etc/confd/conf.d/server.yaml.toml +++ b/rootfs/etc/confd/conf.d/server.yaml.toml @@ -1,3 +1,6 @@ [template] src = "server.yaml.tmpl" -dest = "/var/lib/synapse/server.yaml" \ No newline at end of file +dest = "/var/lib/synapse/server.yaml" +uid = 2222 +gid = 2222 +mode = "0644"