docker-scripts/balancer/Dockerfile

34 lines
1.4 KiB
Docker
Raw Normal View History

2018-07-13 18:02:17 +03:00
FROM ubuntu:bionic
MAINTAINER Konstantin Safonov <kasthack@epicm.org>
MAINTAINER Anatoliy Zimovskiy <stam@epicm.org>
ENV DEBIAN_FRONTEND noninteractive
# fix errors
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN apt-get update && apt-get install -y apt-utils gnupg
# installing packages
2019-01-06 02:46:20 +03:00
RUN echo "deb http://ppa.launchpad.net/ondrej/nginx-mainline/ubuntu cosmic main" >> /etc/apt/sources.list && \
2018-07-13 18:02:17 +03:00
gpg --keyserver keyserver.ubuntu.com --recv 4F4EA0AAE5267A6C && \
gpg --export --armor 4F4EA0AAE5267A6C >> temp.key && \
apt-key add temp.key && \
rm temp.key && \
gpg --keyserver keyserver.ubuntu.com --recv A1715D88E1DF1F24 && \
gpg --export --armor A1715D88E1DF1F24 >> temp.key && \
apt-key add temp.key && \
rm temp.key && \
apt-get update && \
apt-get dist-upgrade -y && \
2019-01-06 02:46:57 +03:00
apt-get install -y --no-install-recommends --allow-unauthenticated apt-utils iputils-ping htop mc tmux cmatrix wget ca-certificates openssl nginx libnginx-mod-http-cache-purge libnginx-mod-http-dav-ext libnginx-mod-http-geoip libnginx-mod-http-headers-more-filter libnginx-mod-http-lua libnginx-mod-http-uploadprogress libnginx-mod-mail libnginx-mod-stream libnginx-mod-http-xslt-filter && \
2018-07-13 18:02:17 +03:00
rm -rf /var/lib/apt/lists/*
RUN ln -sf /dev/stdout /var/log/nginx/access.log && \
ln -sf /dev/stderr /var/log/nginx/error.log
VOLUME ["/var/cache/nginx"]
EXPOSE 80 443
CMD ["nginx", "-g", "daemon off;"]