forked from ideawu/ssdb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
46 lines (40 loc) · 1.7 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM debian:stable-slim
MAINTAINER rhessing
ARG DOWNLOAD_URL="https://github.com/rhessing/ssdb/archive/master.zip"
# Basics
RUN apt-get -y update && \
apt-get install -y wget unzip make autoconf g++ && \
wget --no-check-certificate ${DOWNLOAD_URL} && \
unzip master && \
cd ssdb-master && \
./build.sh && \
make && make install && \
mkdir -p /var/lib/ssdb && \
ln -fsn /usr/local/ssdb/ssdb-cli /bin/ssdb-cli && \
ln -fsn /usr/local/ssdb/ssdb-bench /bin/ssdb-bench && \
ln -fsn /usr/local/ssdb/ssdb-dump /bin/ssdb-dump && \
ln -fsn /usr/local/ssdb/ssdb-repair /bin/ssdb-repair && \
ln -fsn /usr/local/ssdb/leveldb-import /bin/leveldb-import && \
cd
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod 755 /usr/local/bin/docker-entrypoint.sh
# clean up
RUN rm -rf /ssdb-master /master.zip && \
apt-get purge -y \
autotools-dev binutils binutils-common binutils-x86-64-linux-gnu \
bzip2 ca-certificates cpp cpp-8 file g++-8 gcc gcc-8 libasan5 libatomic1 \
libbinutils libc-dev-bin libc6-dev libcc1-0 libexpat1 libgcc-8-dev \
libgdbm-compat4 libgdbm6 libgomp1 libisl19 libitm1 liblsan0 libmagic-mgc \
libmagic1 libmpc3 libmpfr6 libmpx2 libpcre2-8-0 libperl5.28 libpsl5 \
libquadmath0 libreadline7 libsigsegv2 libsqlite3-0 libssl1.1 libstdc++-8-dev \
libtsan0 libubsan1 linux-libc-dev m4 manpages manpages-dev mime-support \
netbase openssl perl perl-modules-5.28 publicsuffix readline-common xz-utils \
wget unzip make autoconf g++ && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install Python
RUN apt-get -y update && apt-get -y install python
ENV TZ Europe/Amsterdam
EXPOSE 8888
VOLUME /var/lib/ssdb
CMD ["/usr/local/bin/docker-entrypoint.sh"]