-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (23 loc) · 1001 Bytes
/
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
# ------------------------------------------------------------------------------
# Pull base image
FROM redis:latest
LABEL author="Brett Kuskie <fullaxx@gmail.com>"
# ------------------------------------------------------------------------------
# Set environment variables
ENV DEBIAN_FRONTEND=noninteractive
# ------------------------------------------------------------------------------
# Add app.sh and redis.conf
COPY app.sh /app/app.sh
COPY redis.conf /usr/local/etc/redis/redis.conf
# ------------------------------------------------------------------------------
# Add volumes
VOLUME /data
VOLUME /run/redis
# ------------------------------------------------------------------------------
# Define Healthcheck
HEALTHCHECK --start-period=2s --interval=5s \
CMD redis-cli -s /run/redis/redis.sock PING
# ------------------------------------------------------------------------------
# Define default command
# CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
CMD [ "/app/app.sh" ]