2019-11-07 08:03:03 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for twemproxy
|
|
|
|
#
|
|
|
|
|
|
|
|
FROM alpine:3
|
2023-04-23 14:39:22 +02:00
|
|
|
MAINTAINER EasyPi Software Foundation
|
2019-11-07 08:03:03 +02:00
|
|
|
|
2023-04-23 14:39:22 +02:00
|
|
|
ARG TWEMPROXY_VERSION=0.5.0
|
|
|
|
ARG TWEMPROXY_URL=https://github.com/twitter/twemproxy/releases/download/${TWEMPROXY_VERSION}/twemproxy-${TWEMPROXY_VERSION}.tar.gz
|
|
|
|
ARG TWEMPROXY_HOME=/opt/twemproxy
|
2019-11-07 08:03:03 +02:00
|
|
|
|
|
|
|
WORKDIR ${TWEMPROXY_HOME}
|
|
|
|
|
|
|
|
RUN set -xe \
|
|
|
|
&& apk --no-cache add -t TMP alpine-sdk autoconf automake curl libtool tar \
|
|
|
|
&& mkdir -p conf logs src \
|
|
|
|
&& curl -sSL ${TWEMPROXY_URL} | tar xz --strip 1 -C src \
|
|
|
|
&& cd src \
|
|
|
|
&& autoreconf -fvi \
|
|
|
|
&& CFLAGS="-O3" ./configure \
|
|
|
|
&& make install \
|
|
|
|
&& nutcracker --version \
|
|
|
|
&& cd .. \
|
|
|
|
&& rm -rf src \
|
|
|
|
&& apk del TMP
|
|
|
|
|
|
|
|
EXPOSE 22222
|
|
|
|
|
|
|
|
ENTRYPOINT ["nutcracker"]
|
|
|
|
CMD ["--help"]
|