Add data containers to fix permission issues

master
andryyy 2016-12-15 10:08:06 +01:00
parent d6e0c46b9a
commit 7c9f312f0f
2 changed files with 18 additions and 0 deletions

View File

@ -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"]

View File

@ -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"]