forked from btccom/btcagent
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
41 lines (34 loc) · 856 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
37
38
39
40
41
# # FINAL STEP
FROM debian:bullseye-slim
RUN apt-get update && apt-get install -y build-essential \
cmake \
git \
wget \
tar \
autoconf
#
# install libevent
#
RUN wget https://github.com/libevent/libevent/releases/download/release-2.1.9-beta/libevent-2.1.9-beta.tar.gz \
&& tar zxvf libevent-2.1.9-beta.tar.gz \
&& cd libevent-2.1.9-beta \
&& ./configure \
&& make \
&& make install
#
# install glog
#
RUN wget https://github.com/google/glog/archive/v0.3.5.tar.gz \
&& tar zxvf v0.3.5.tar.gz \
&& cd glog-0.3.5 \
&& ./configure \
&& make \
&& make install
WORKDIR /luxorproxy
COPY . .
WORKDIR /luxorproxy/build
RUN cmake -DCMAKE_BUILD_TYPE=Debug .. \
&& make
RUN cp /luxorproxy/build/btcagent /luxorproxy/build/luxorproxy
EXPOSE 3333 3334
ENTRYPOINT [ "/luxorproxy/build/luxorproxy" ]