forked from mailpile/Mailpile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (24 loc) · 881 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
FROM debian:buster-slim
ENV GID 33411
ENV UID 33411
RUN apt-get update && \
apt-get install -y curl apt-transport-https gnupg && \
curl -s https://packages.mailpile.is/deb/key.asc | apt-key add - && \
echo "deb https://packages.mailpile.is/deb release main" | tee /etc/apt/sources.list.d/000-mailpile.list && \
apt-get update && \
apt-get install -y mailpile && \
# TODO Enable apache for multi users
# apt-get install -y mailpile-apache2
update-rc.d tor defaults && \
service tor start && \
groupadd -g $GID mailpile && \
useradd -u $UID -g $GID -m mailpile && \
su - mailpile -c 'mailpile setup' && \
apt-get clean
WORKDIR /home/mailpile
USER mailpile
VOLUME /home/mailpile/.local/share/Mailpile
VOLUME /home/mailpile/.gnupg
EXPOSE 33411
ENTRYPOINT ["service tor start;","mailpile"]
CMD ["--www=0.0.0.0:33411/","--wait"]