forked from SimplySecurity/SimplyEmail
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (26 loc) · 661 Bytes
/
Dockerfile
File metadata and controls
34 lines (26 loc) · 661 Bytes
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
27
28
29
30
31
32
33
34
# image base
FROM ubuntu:16.04
# extra metadata
LABEL maintainer="SimplySecurity"
LABEL description="Dockerfile base for SimplyEmail."
# env setup
ENV DEBIAN_FRONTEND=noninteractive
# set the def shell for ENV
SHELL ["/bin/bash", "-c"]
# install basic build items
RUN apt-get update && apt-get install -qy \
wget \
curl \
git \
sudo \
apt-utils \
lsb-core \
python2.7
# cleanup image
RUN apt-get -qy clean \
autoremove
RUN git clone -b master https://github.com/SimplySecurity/SimplyEmail.git /opt/SimplyEmail && \
cd /opt/SimplyEmail/ && \
./setup/setup.sh
WORKDIR "/opt/SimplyEmail"
ENTRYPOINT ["./SimplyEmail.py"]