1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-25 00:08:49 +00:00
dockerfiles/webdis/Dockerfile

18 lines
600 B
Docker
Raw Permalink Normal View History

2021-05-10 08:13:25 +00:00
#
# Dockerfile for webdis
#
2023-09-06 07:10:06 +00:00
FROM alpine:3.18 AS stage
ENV WEBDIS_VERSION=0.1.22
RUN apk add --no-cache wget make gcc libevent-dev msgpack-c-dev musl-dev openssl-dev bsd-compat-headers jq
2021-05-10 08:13:25 +00:00
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
2023-09-06 07:10:06 +00:00
FROM alpine:3.18
2021-05-10 08:13:25 +00:00
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"]