File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -94,20 +94,15 @@ RUN set -xe; \
94
94
# but we keep them as 755 and 644 for consistency with CouchDB defaults and the dockerfile_entrypoint.
95
95
find /opt/couchdb/etc -type d ! -perm 0755 -exec chmod -f 0775 '{}' +; \
96
96
find /opt/couchdb/etc -type f ! -perm 0644 -exec chmod -f 0664 '{}' +; \
97
- # only local.d needs to be writable for the docker_entrypoint.sh
98
- chmod -f 0777 /opt/couchdb/etc/local.d; \
99
97
# Setup directories and permissions for data.
100
98
chmod 777 /opt/couchdb/data
101
99
102
100
# Add the License
103
101
COPY licenses /licenses
104
102
105
103
# Add configuration
106
- USER couchdb
107
- COPY resources/10-docker-default.ini /opt/couchdb/etc/default.d/
108
- COPY resources/vm.args /opt/couchdb/etc/
109
- USER root
110
-
104
+ COPY --chown=couchdb:0 resources/10-docker-default.ini /opt/couchdb/etc/default.d/
105
+ COPY --chown=couchdb:0 resources/vm.args /opt/couchdb/etc/
111
106
COPY resources/docker-entrypoint.sh /usr/local/bin
112
107
COPY resources/run /etc/service/couchdb/
113
108
Original file line number Diff line number Diff line change @@ -103,14 +103,14 @@ if [ "$1" = '/opt/couchdb/bin/couchdb' ]; then
103
103
#!/bin/sh
104
104
export HOME=/opt/couchdb
105
105
exec 2>&1
106
- exec chpst -u couchdb $@
106
+ exec chpst -u couchdb env ERL_FLAGS=" $ERL_FLAGS " $@
107
107
EOF
108
108
else
109
109
cat > /etc/service/couchdb/run << -EOF
110
110
#!/bin/sh
111
111
export HOME=/opt/couchdb
112
112
exec 2>&1
113
- exec chpst $@
113
+ exec chpst env ERL_FLAGS=" $ERL_FLAGS " $@
114
114
EOF
115
115
fi
116
116
You can’t perform that action at this time.
0 commit comments