Skip to content

Commit

Permalink
Simpler fix for local error
Browse files Browse the repository at this point in the history
  • Loading branch information
macropin committed Jun 6, 2017
1 parent 1caa72e commit 2e4e2fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN echo mail > /etc/hostname; \

# Install packages
RUN apt-get update && \
apt-get install -y --no-install-recommends postfix mailutils busybox-syslogd curl ca-certificates locales && \
apt-get install -y --no-install-recommends postfix mailutils busybox-syslogd curl ca-certificates && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

Expand All @@ -26,10 +26,6 @@ RUN DIR=$(mktemp -d) && cd ${DIR} && \
tar -xzf s6.tar.gz -C / && \
rm -rf ${DIR}

# Configure Locales (fix error w/ dpkg-reconfigure)
COPY locale.gen /etc/locale.gen
RUN locale-gen

# Configure Postfix
RUN postconf -e smtpd_banner="\$myhostname ESMTP" && \
# Enable submission
Expand Down
13 changes: 0 additions & 13 deletions locale.gen

This file was deleted.

3 changes: 3 additions & 0 deletions s6/postfix/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

[ "$DEBUG" == 'true' ] && set -x

# Fix issue with dpkg-reconfigure and locales not installed "perl: warning: Setting locale failed."
unset LANG

cd /etc/postfix

# Copy default spool from cache
Expand Down

0 comments on commit 2e4e2fb

Please sign in to comment.