forked from frodenas/docker-couchdb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
39 lines (32 loc) · 929 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM couchdb:1
MAINTAINER Krzysztof Kobrzak <[email protected]>
RUN \
apt-get update && \
DEBIAN_FRONTEND=noninteractive && \
apt-get install -y -qq --no-install-recommends \
netcat \
pwgen && \
apt-get autoremove -y && \
apt-get clean
COPY scripts /usr/local/bin
COPY etc/* /usr/local/etc/couchdb/local.d/
RUN \
touch /var/lib/couchdb/couchdb-not-inited && \
chown -R couchdb:couchdb \
/usr/local/bin/* \
/usr/local/etc/couchdb \
/usr/local/share/couchdb \
/usr/local/share/doc \
/var/lib/couchdb && \
chmod -R 0770 \
/usr/local/etc/couchdb \
/usr/local/var/lib/couchdb \
/usr/local/var/log/couchdb \
/usr/local/var/run/couchdb && \
chmod -R +x \
/usr/local/bin/*
USER couchdb
# Expose our data, logs and configuration volumes
VOLUME ["/var/lib/couchdb", "/usr/local/var/log/couchdb", "/usr/local/etc/couchdb"]
ENTRYPOINT ["start_couchdb"]
CMD [""]