-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (23 loc) · 894 Bytes
/
Dockerfile
File metadata and controls
25 lines (23 loc) · 894 Bytes
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
FROM deis/base:latest
MAINTAINER OpDemand <info@opdemand.com>
# build Redis from source
RUN buildDeps='gcc libc6-dev make curl'; \
export DEBIAN_FRONTEND=noninteractive; \
set -x; \
apt-get update && apt-get install -y $buildDeps net-tools --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /usr/src/redis \
&& curl -sSL http://download.redis.io/releases/redis-2.8.15.tar.gz -o redis.tar.gz \
&& echo "afc0d753cea68a26038775df2dea75a76e3d0e1d *redis.tar.gz" | sha1sum -c - \
&& tar -xzf redis.tar.gz -C /usr/src/redis --strip-components=1 \
&& make -C /usr/src/redis \
&& make -C /usr/src/redis install \
&& rm -r redis.tar.gz /usr/src/redis \
&& apt-get purge -y $buildDeps \
&& apt-get autoremove -y \
&& apt-get clean
WORKDIR /app
CMD ["/app/bin/boot"]
EXPOSE 6379
ADD . /app
ADD redis.conf /etc/redis/redis.conf