Public | Automated Build

Last pushed: 4 days ago
Dockerfile
FROM centos:7 ENV VERSION 1.7.9 ENV CENTRIFUGO_SHA256 da293d464b2b6b62fb8972c6a9d6b24d71fe93212c8f1e294eb61fa2e8a24c16 ENV DOWNLOAD https://github.com/centrifugal/centrifugo/releases/download/v$VERSION/centrifugo-$VERSION-linux-amd64.zip RUN curl -sSL "$DOWNLOAD" -o /tmp/centrifugo.zip && \ echo "${CENTRIFUGO_SHA256} /tmp/centrifugo.zip" | sha256sum -c - && \ yum install -y unzip && \ unzip -jo /tmp/centrifugo.zip -d /tmp/ && \ yum remove -y unzip && \ mv /tmp/centrifugo /usr/bin/centrifugo && \ rm -f /tmp/centrifugo.zip && \ echo "centrifugo - nofile 65536" >> /etc/security/limits.d/centrifugo.nofiles.conf RUN groupadd -r centrifugo && useradd -r -g centrifugo centrifugo RUN mkdir /centrifugo && chown centrifugo:centrifugo /centrifugo && \ mkdir /var/log/centrifugo && chown centrifugo:centrifugo /var/log/centrifugo VOLUME ["/centrifugo", "/var/log/centrifugo"] WORKDIR /centrifugo USER centrifugo CMD ["centrifugo"] EXPOSE 8000
Source Repository