Skip to content

Commit

Permalink
Install postfix
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosribas committed May 9, 2024
1 parent 86c7244 commit c1ea8ea
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ RUN poetry export -f requirements.txt --without-hashes -o /tmp/requirements.txt
# create batch search image
FROM python:3.11-slim-bullseye as batch-search

# install extra packages
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
mailutils \
postfix \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*

ENV \
PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
Expand All @@ -41,6 +50,10 @@ WORKDIR $HOME
COPY --from=poetry /tmp/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# copy the postfix settings
COPY postfix/main.cf /etc/postfix/main.cf
COPY postfix/mailname /etc/mailname

# copy project
COPY . .
RUN chown -R rfam:rfam /srv && chown -R rfam:rfam /var/log/gunicorn
Expand Down

0 comments on commit c1ea8ea

Please sign in to comment.