-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
20 lines (20 loc) · 1.4 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
## Project Page: https://github.com/ety001/docker-httpsqs
FROM alpine:latest
MAINTAINER ety001 <[email protected]>
VOLUME /data
RUN apk add --no-cache alpine-sdk zlib-dev bzip2-dev bsd-compat-headers && mkdir /source \
&& wget https://github.com/ety001/docker-httpsqs/raw/master/src/httpsqs-1.7.tar.gz -O /source/httpsqs-1.7.tar.gz \
&& wget https://github.com/ety001/docker-httpsqs/raw/master/src/libevent-2.0.12-stable.tar.gz -O /source/libevent-2.0.12-stable.tar.gz \
&& wget https://github.com/ety001/docker-httpsqs/raw/master/src/tokyocabinet-1.4.47.tar.gz -O /source/tokyocabinet-1.4.47.tar.gz \
&& wget https://raw.githubusercontent.com/ety001/docker-httpsqs/master/src/run_httpsqs.sh -O /run_httpsqs.sh \
&& chmod +x /run_httpsqs.sh \
&& tar zxf /source/libevent-2.0.12-stable.tar.gz -C /source \
&& tar zxf /source/tokyocabinet-1.4.47.tar.gz -C /source \
&& tar zxf /source/httpsqs-1.7.tar.gz -C /source \
&& cd /source/libevent-2.0.12-stable && ./configure --prefix=/usr/local/libevent-2.0.12-stable/ && make && make install \
&& cd /source/tokyocabinet-1.4.47 && ./configure --prefix=/usr/local/tokyocabinet-1.4.47/ && make && make install \
&& cd /source/httpsqs-1.7 && make && make install \
&& cd / && rm -rf /source \
&& apk del alpine-sdk bsd-compat-headers \
&& ulimit -SHn 65535
CMD ["/run_httpsqs.sh"]