-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
33 lines (24 loc) · 1.01 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
# Dockerfile for beanstalkd
# BUILD
# =====
FROM ubuntu:22.04 AS buildstep
LABEL maintainer="Richard Bullington-McGuire <[email protected]>"
ENV BEANSTALKD_VERSION="1.13"
RUN apt-get update && apt-get install -y software-properties-common build-essential git curl
RUN curl -sL https://github.com/kr/beanstalkd/archive/v${BEANSTALKD_VERSION}.tar.gz | tar xvz -C /tmp
WORKDIR /tmp/beanstalkd-${BEANSTALKD_VERSION}
RUN make
RUN cp beanstalkd /tmp/
# DEPLOY
# =====
FROM ubuntu:22.04 AS deploystep
LABEL maintainer="Richard Bullington-McGuire <[email protected]>"
COPY --from=buildstep /tmp/beanstalkd /usr/bin/beanstalkd
RUN mkdir -p /data
VOLUME /data
EXPOSE 11300
# use a binlog that can be recovered after power failure: -b
# Make beanstalkd sync after every write (This is really key): -f 0
# - For Freezing Saddles, we want maximum durability and can afford the minor performance hit.
# Enable verbose log output: -V
CMD ["beanstalkd", "-p", "11300", "-f", "0", "-b", "/data", "-V"]