openvidu/openvidu-server/docker/openvidu-proxy/Dockerfile

34 lines
913 B
Docker
Raw Normal View History

FROM nginx:1.27.3-alpine
2020-03-24 17:18:37 +01:00
2020-04-30 14:27:40 +02:00
# Install required software
RUN apk update && \
2020-05-04 13:35:21 +02:00
apk add bash \
certbot \
openssl \
apache2-utils \
bind-tools \
perl pcre grep && \
2020-04-28 15:53:56 +02:00
rm -rf /var/cache/apk/*
2020-03-24 17:18:37 +01:00
# Default nginx conf
2020-11-09 15:20:04 +01:00
COPY ./default.conf /etc/nginx/conf.d/default.conf
COPY ./default_nginx_conf /default_nginx_conf
2020-04-30 14:27:40 +02:00
# Entrypoint and discover public ip scripts
COPY ./discover_my_public_ip.sh ./update_enterprise_ha_nodes.sh /usr/local/bin/
# Copy nginx.conf
COPY ./nginx.conf /etc/nginx/nginx.conf
# Entrypoint
2020-03-24 17:18:37 +01:00
COPY ./entrypoint.sh /usr/local/bin
2020-04-30 14:27:40 +02:00
2020-04-28 15:53:56 +02:00
RUN mkdir -p /var/www/certbot && \
mkdir -p /etc/nginx/vhost.d/ && \
2020-11-09 16:29:35 +01:00
mkdir -p /custom-nginx && \
2020-04-30 14:27:40 +02:00
chmod +x /usr/local/bin/entrypoint.sh && \
chmod +x /usr/local/bin/discover_my_public_ip.sh && \
chmod +x /usr/local/bin/update_enterprise_ha_nodes.sh
2020-03-24 17:18:37 +01:00
CMD [ "/usr/local/bin/entrypoint.sh" ]