2018-07-09 15:14:44 +02:00
|
|
|
FROM alpine:3.8
|
2017-12-13 13:43:22 +01:00
|
|
|
MAINTAINER Disassembler <disassembler@dasm.cz>
|
|
|
|
|
2017-12-21 10:39:07 +01:00
|
|
|
RUN \
|
|
|
|
# Create OS user (which will be picked up later by apk add)
|
|
|
|
addgroup -S -g 6379 redis \
|
2017-12-13 16:06:31 +01:00
|
|
|
&& adduser -S -u 6379 -h /var/lib/redis -s /bin/false -g redis -G redis redis \
|
2017-12-21 10:39:07 +01:00
|
|
|
# Install Redis
|
2017-12-13 16:06:31 +01:00
|
|
|
&& apk --no-cache add redis
|
2017-12-13 13:43:22 +01:00
|
|
|
|
|
|
|
VOLUME ["/var/lib/redis"]
|
|
|
|
EXPOSE 6379
|
|
|
|
|
|
|
|
USER redis
|
|
|
|
CMD ["redis-server", "/etc/redis.conf"]
|