docker_images/odoo/nginx/Dockerfile

20 lines
504 B
Docker

FROM nginx:stable
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
# Default variables
ENV NGINX_HOST localhost
ENV ODOO_SERVER_NAMES odoo
# Copy templates and usefull files
COPY launch.sh /launch.sh
COPY root.conf /etc/nginx/conf.d/root.template
COPY odoo.conf /etc/nginx/conf.d/odoo.template
# Create sensible CERTS
RUN mkdir /etc/nginx/certs
COPY req.pem cert.key dhparams.pem /etc/nginx/certs/
# Dot not daemonize nginx
RUN echo 'daemon off;' >> /etc/nginx/nginx.conf
CMD bash /launch.sh