|
@@ -119,14 +119,15 @@ COPY 10-docker-default.ini /opt/couchdb/etc/default.d/
|
|
|
COPY vm.args /opt/couchdb/etc/
|
|
|
COPY docker-entrypoint.sh /usr/local/bin
|
|
|
RUN ln -s usr/local/bin/docker-entrypoint.sh /docker-entrypoint.sh # backwards compat
|
|
|
-ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]
|
|
|
+#ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]
|
|
|
|
|
|
# Setup directories and permissions
|
|
|
RUN chown -R couchdb:couchdb /opt/couchdb/etc/default.d/ /opt/couchdb/etc/vm.args
|
|
|
#VOLUME /opt/couchdb/data
|
|
|
-
|
|
|
+ADD start.sh /start.sh
|
|
|
+RUN chmod +x /start.sh
|
|
|
# 5984: Main CouchDB endpoint
|
|
|
# 4369: Erlang portmap daemon (epmd)
|
|
|
# 9100: CouchDB cluster communication port
|
|
|
#EXPOSE 5984 4369 9100
|
|
|
-CMD ["/opt/couchdb/bin/couchdb"]
|
|
|
+CMD ["/start.sh"]
|