15 lines
346 B
Plaintext
15 lines
346 B
Plaintext
IMAGE redis_4.0.12-190620
|
|
FROM alpine3.11_3.11.3-200313
|
|
|
|
RUN EOF
|
|
# 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
|
|
EOF
|
|
|
|
USER redis
|
|
CMD /usr/bin/redis-server /etc/redis.conf
|