forked from liquidinvestigations/cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (25 loc) · 980 Bytes
/
Dockerfile
File metadata and controls
30 lines (25 loc) · 980 Bytes
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
FROM python:3.7-stretch
ENV DEBIAN_FRONTEND noninteractive
ENV PYTHONUNBUFFERED true
RUN set -e \
&& apt-get update -qq \
&& apt-get install -qq -y --no-install-recommends \
sudo curl unzip libcap2-bin qemu-kvm dnsutils iptables netcat socat \
apt-transport-https ca-certificates gnupg2 software-properties-common \
&& curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \
&& add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable" \
&& apt-get update -qq \
&& apt-get install -qq -y docker-ce-cli \
&& apt-get clean && rm -rf /var/lib/apt/lists/* \
&& mkdir -p /app/var && mkdir -p /app/bin
WORKDIR /app
ADD cluster.py docker-entrypoint.sh Pipfile Pipfile.lock ./
RUN pip3 install pipenv \
&& pipenv install --system --deploy --ignore-pipfile
RUN ./cluster.py install \
&& setcap cap_ipc_lock=+ep bin/vault
ENV DOCKER_BIN=/app/bin
ENTRYPOINT ["/app/docker-entrypoint.sh"]