-
Notifications
You must be signed in to change notification settings - Fork 33
/
Dockerfile
36 lines (28 loc) · 905 Bytes
/
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
FROM debian:buster
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
RUN echo "deb http://archive.debian.org/debian buster-backports main" >> /etc/apt/sources.list
RUN apt-get update \
&& apt-get install -y \
vim \
redis-server \
supervisor \
curl \
bridge-utils \
net-tools \
libboost-serialization1.71-dev \
libzmq5-dev
COPY debs /debs
RUN dpkg -i /debs/*.deb || apt-get --fix-broken -y install
RUN rm -fr /debs
COPY supervisor/supervisor.conf /etc/supervisor/conf.d/
COPY supervisor/rest_api.conf /etc/supervisor/conf.d/
RUN mkdir /usr/sbin/cert
RUN mkdir /usr/sbin/cert/client
RUN mkdir /usr/sbin/cert/server
COPY cert/client/* /usr/sbin/cert/client/
COPY cert/server/* /usr/sbin/cert/server/
RUN apt-get autoremove -y \
&& apt-get clean \
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
ENTRYPOINT ["/usr/bin/supervisord"]