-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (28 loc) · 1.12 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
ARG REDIS_VERSION=4.0
FROM redis:${REDIS_VERSION}-alpine
# ================================================================================================
# Inspiration: Docker Framework (https://github.com/zeroc0d3/docker-framework)
# Dwi Fahni Denni <zeroc0d3.0912@gmail.com>
# ================================================================================================
# Core Contributors:
# - Mahmoud Zalt @mahmoudz
# - Bo-Yi Wu @appleboy
# - Philippe Trépanier @philtrep
# - Mike Erickson @mikeerickson
# - Dwi Fahni Denni @zeroc0d3
# - Thor Erik @thorerik
# - Winfried van Loon @winfried-van-loon
# - TJ Miller @sixlive
# - Yu-Lung Shao (Allen) @bestlong
# - Milan Urukalo @urukalo
# - Vince Chu @vwchu
# - Huadong Zuo @zuohuadong
# ================================================================================================
RUN mkdir -p /data && chown redis:redis /data
VOLUME /data
WORKDIR /data
COPY ./docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod 777 /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]
EXPOSE 6379
CMD ["redis-server"]