sbp commented on issue #48:
URL: 
https://github.com/apache/incubator-ponymail-foal/issues/48#issuecomment-890478555


   The following snippet of a Dockerfile based on Debian may be of some use:
   
   ```
   RUN apt-get -y --quiet --no-install-recommends install \
       apache2 \
       git \
       pipenv \
       python3 \
     && apt-get -y autoremove \
     && apt-get clean autoclean \
     && rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*
   
   RUN cd /var/www \
     && git clone https://github.com/apache/incubator-ponymail-foal foal \
     && cd /var/www/foal/ \
     && pipenv install -r requirements.txt \
     && cd /var/www/foal/tools/ \
     && pipenv run python3 setup.py --defaults \
         --noindex \
         --dburl=https://$ELASTICSEARCH/ \
         --dbname=$DATABASE \
         --mldom=$DOMAIN \
     && cd /var/www/foal/server/ \
     && pipenv install -r requirements.txt \
     && chown -R www-data /var/www/foal
   
   RUN a2enmod headers \
     && a2enmod proxy \
     && a2enmod proxy_http \
     && a2enmod remoteip \
     && a2enmod rewrite \
     && a2enmod ssl \
     && a2ensite $DOMAIN
   ```
   
   The `$ELASTICSEARCH`, `$DATABASE`, and `$DOMAIN` variables must be filled in 
by the user. The Apache modules may not all be required, and some necessary 
configuration has been omitted.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to