Skip to content

Commit

Permalink
Update smtpin Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Oct 11, 2016
1 parent d1f41e8 commit 63a29de
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions smtpin/Dockerfile
Expand Up @@ -4,26 +4,24 @@ FROM node:6.7
RUN npm install -g Haraka
RUN haraka -i /usr/local/haraka

# Configure domain
ADD ./domain /usr/local/haraka/config/host_list
# Copy package.json for plugin dependencies
COPY ./package.json /usr/local/haraka

EXPOSE 25
# Install plugin dependencies
WORKDIR /usr/local/haraka
RUN npm install

# Configure domain
COPY ./domain /usr/local/haraka/config/host_list

# Configurations
COPY ./config /usr/local/haraka/config
# Plugins
COPY ./plugins /usr/local/haraka/plugins

# Install plugin dependencies
WORKDIR /usr/local/haraka
RUN npm install

# Mount /etc/peps for TLS certificates
VOLUME ["/etc/peps"]

# Configure domain name
COPY ./domain /usr/local/haraka/config/host_list

# Copy start script
COPY ./haraka.sh /

Expand Down

0 comments on commit 63a29de

Please sign in to comment.