Add data containers to fix permission issues
parent
d6e0c46b9a
commit
7c9f312f0f
|
@ -0,0 +1,8 @@
|
|||
FROM debian:jessie
|
||||
|
||||
RUN mkdir -p /data/dkim/keys \
|
||||
&& mkdir -p /data/dkim/txt \
|
||||
&& chown -R 33:33 /data/dkim
|
||||
VOLUME /data/dkim
|
||||
USER www-data
|
||||
CMD ["echo", "Data container for dkim keys"]
|
|
@ -0,0 +1,10 @@
|
|||
FROM debian:jessie
|
||||
|
||||
RUN groupadd -g 5000 vmail \
|
||||
&& useradd -g vmail -u 5000 vmail -d /var/vmail
|
||||
|
||||
RUN mkdir -p /var/vmail \
|
||||
&& chown -R 5000:5000 /var/vmail
|
||||
VOLUME /var/vmail
|
||||
USER vmail
|
||||
CMD ["echo", "Data container for mail"]
|
Loading…
Reference in New Issue