mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-28 12:34:01 +03:00
13 lines
380 B
Docker
13 lines
380 B
Docker
FROM nginx:latest
|
|
ADD nginx.conf /etc/nginx/nginx.conf
|
|
|
|
{% if cookiecutter.use_lets_encrypt == 'y' and cookiecutter.use_docker == 'y' %}
|
|
# installs the `ps` command in the nginx image
|
|
RUN apt-get update && apt-get install -y procps
|
|
|
|
ADD start.sh /start.sh
|
|
ADD nginx-secure.conf /etc/nginx/nginx-secure.conf
|
|
ADD dhparams.pem /etc/ssl/private/dhparams.pem
|
|
CMD /start.sh
|
|
{% endif %}
|