Refactoring wazuh/wazuh-nginx container

This commit is contained in:
Miguelangel Freitas
2018-05-16 02:39:50 +00:00
parent efb5f9ef04
commit 0df2367e7a
3 changed files with 63 additions and 45 deletions
+10 -2
View File
@@ -1,7 +1,15 @@
FROM nginx:latest
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y openssl apache2-utils
COPY config/run.sh /run.sh
COPY config/entrypoint.sh /entrypoint.sh
RUN chmod 755 /run.sh
RUN chmod 755 /entrypoint.sh
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
VOLUME ["/etc/nginx/conf.d"]
ENTRYPOINT /entrypoint.sh