forked from hectane/hectane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (22 loc) · 689 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
FROM golang:latest
MAINTAINER Nathan Osman <[email protected]>
# Grab the source files and build them
RUN go get github.com/hectane/hectane
# Set a few configuration defaults
ENV DIRECTORY=/data \
DISABLE_SSL_VERIFICATION=0 \
LOGFILE=/var/log/hectane.log \
DEBUG=0
# Specify the executable to run
CMD hectane \
-tls-cert="$TLS_CERT" \
-tls-key="$TLS_KEY" \
-username="$USERNAME" \
-password="$PASSWORD" \
-directory="$DIRECTORY" \
-disable-ssl-verification="$DISABLE_SSL_VERIFICATION" \
-logfile="$LOGFILE" \
-debug="$DEBUG"
# Expose the SMTP and HTTP API ports
EXPOSE 25
EXPOSE 8025