1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/webdis/Dockerfile
2021-05-10 16:17:55 +08:00

18 lines
579 B
Docker

#
# Dockerfile for webdis
#
FROM alpine:3 AS stage
ENV WEBDIS_VERSION=0.1.15
RUN apk add --no-cache wget make gcc libevent-dev msgpack-c-dev musl-dev bsd-compat-headers
RUN wget https://github.com/nicolasff/webdis/archive/$WEBDIS_VERSION.tar.gz -O webdis.tar.gz
RUN tar -xvzf webdis.tar.gz && cd webdis-$WEBDIS_VERSION && make && make install
RUN which webdis
FROM alpine:3
MAINTAINER EasyPi Software Foundation
RUN apk add --no-cache libcrypto1.1 libevent msgpack-c
COPY --from=stage /usr/local/bin/webdis /usr/local/bin/
EXPOSE 7379
CMD ["webdis", "/etc/webdis/webdis.json"]