Spotter-VM/redis/Dockerfile

13 lines
297 B
Docker
Raw Normal View History

FROM alpine:3.7
MAINTAINER Disassembler <disassembler@dasm.cz>
2017-12-13 16:06:31 +01:00
RUN addgroup -S -g 6379 redis \
&& adduser -S -u 6379 -h /var/lib/redis -s /bin/false -g redis -G redis redis \
&& apk --no-cache add redis
VOLUME ["/var/lib/redis"]
EXPOSE 6379
USER redis
CMD ["redis-server", "/etc/redis.conf"]