How to use docker build a email service

How to use docker build a email service

How to use docker build a email service

1. Create a new directory

1
2
mkdir email-service
cd email-service

2. Create a new file named Dockerfile

1
touch Dockerfile

3. Edit the Dockerfile

FROM alpine:3.14

RUN apk add --no-cache \
    ssmtp

COPY ssmtp.conf /etc/ssmtp/ssmtp.conf

CMD ["ssmtp", "