You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
786 B
Docker
19 lines
786 B
Docker
FROM alpine:3.11.3 AS stage
|
|
MAINTAINER Nicolas Favre-Felix <n.favrefelix@gmail.com>
|
|
|
|
RUN apk update && apk add wget make gcc libevent-dev msgpack-c-dev musl-dev bsd-compat-headers
|
|
RUN wget https://github.com/nicolasff/webdis/archive/0.1.8.tar.gz -O webdis-0.1.8.tar.gz
|
|
RUN tar -xvzf webdis-0.1.8.tar.gz
|
|
RUN cd webdis-0.1.8 && make && make install && cd ..
|
|
RUN sed -i -e 's/"daemonize":.*true,/"daemonize": false,/g' /etc/webdis.prod.json
|
|
|
|
# main image
|
|
FROM alpine:3.11.3
|
|
RUN apk update && apk add libevent msgpack-c redis
|
|
COPY --from=stage /usr/local/bin/webdis /usr/local/bin/
|
|
COPY --from=stage /etc/webdis.prod.json /etc/webdis.prod.json
|
|
RUN echo "daemonize yes" >> /etc/redis.conf
|
|
CMD /usr/bin/redis-server /etc/redis.conf && /usr/local/bin/webdis /etc/webdis.prod.json
|
|
|
|
EXPOSE 7379
|