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"