diff --git a/facebook/Dockerfile b/facebook/Dockerfile index d7e97a5e6..d78599349 100644 --- a/facebook/Dockerfile +++ b/facebook/Dockerfile @@ -9,9 +9,15 @@ RUN install2.r --error \ stringi \ data.table \ roxygen2 \ - Rcpp + Rcpp \ + BH + RUN R --no-restore --no-save -e 'devtools::install_version("readr", version="1.4.0")' -RUN apt-get update && apt-get install -qq -y python3-venv +RUN apt-get update && apt-get install -qq -y \ + python3-venv \ + sshpass \ + openssh-server \ + ssmtp ADD ./delphiFacebook /facebook/delphiFacebook/ ADD ./static /facebook/static/ @@ -20,6 +26,7 @@ ADD ./run.R /facebook/run.R ADD ./monthly-files.R /facebook/monthly-files.R ADD ./contingency_tables.R /facebook/contingency_tables.R ADD ./contingency-combine.R /facebook/contingency-combine.R +ADD ./ssmtp.conf /etc/ssmtp/ssmtp.conf WORKDIR /facebook/ RUN make lib RUN make install diff --git a/facebook/ssmtp.conf b/facebook/ssmtp.conf new file mode 100644 index 000000000..4122d9b0e --- /dev/null +++ b/facebook/ssmtp.conf @@ -0,0 +1,21 @@ +# +# Config file for sSMTP sendmail +# +# The person who gets all mail for userids < 1000 +# Make this empty to disable rewriting. +root=postmaster + +# The place where the mail goes. The actual machine name is required no +# MX records are consulted. Commonly mailhosts are named mail.domain.com +mailhub=localhost + +# Where will the mail seem to come from? +#rewriteDomain= + +# The full hostname +hostname=delphi.cmu.edu + +# Are users allowed to set their own From: address? +# YES - Allow the user to specify their own From: address +# NO - Use the system generated From: address +#FromLineOverride=YES