-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
37 lines (29 loc) · 1.32 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
######################################################################
######################################################################
### Dockerfile for Beanstalkd server on Debian 8
######################################################################
######################################################################
# Start from a Debian Jessie 8.7
FROM debian:jessie
MAINTAINER Hugo Lafitte <[email protected]>
######################################################################
#### INSTALL SYSTEM DEPENDANCIES
######################################################################
# Install tools
RUN apt-get update \
&& echo 'Acquire::Retries "5";' > /etc/apt/apt.conf.d/mirror-retry \
&& apt-get -y install curl build-essential\
&& apt-get clean
######################################################################
#### SETUP BEANSTALKD
######################################################################
RUN curl -sL https://github.com/kr/beanstalkd/archive/v1.10.tar.gz | tar xvz -C /tmp
RUN cd /tmp/beanstalkd-1.10 \
&& make \
&& make install
######################################################################
#### RUN CONFIGURATION
######################################################################
VOLUME ["/binlog"]
EXPOSE 11300
CMD ["beanstalkd", "-V", "-p", "11300", "-b", "/binlog"]