2018-09-05 17:41:38 +02:00
|
|
|
IMAGE redis
|
|
|
|
LAYER shared/alpine
|
|
|
|
LAYER redis/redis
|
|
|
|
|
|
|
|
SCRIPT
|
|
|
|
# Create OS user (which will be picked up later by apk add)
|
|
|
|
addgroup -S -g 6379 redis
|
|
|
|
adduser -S -u 6379 -h /var/lib/redis -s /bin/false -g redis -G redis redis
|
|
|
|
|
|
|
|
# Install Redis
|
|
|
|
apk --no-cache add redis
|
|
|
|
RUN
|
|
|
|
|
|
|
|
MOUNT /srv/redis/conf/redis.conf etc/redis.conf
|
|
|
|
MOUNT /srv/redis/data var/lib/redis
|
|
|
|
|
|
|
|
USER 6379 6379
|
2018-09-06 21:15:43 +02:00
|
|
|
CMD s6-setuidgid 6379:6379 /usr/bin/redis-server /etc/redis.conf
|