forked from akash-network/awesome-akash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (40 loc) · 1.3 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
47
# Use a base image
FROM ubuntu:22.04
# Set timezone
ENV TZ=Europe/London
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Install necessary packages
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y git curl wget make gcc libtool build-essential libssl-dev libexpat1-dev bison flex tar unzip && \
rm -rf /var/lib/apt/lists/*
# Install Go
RUN wget https://go.dev/dl/go1.19.4.linux-amd64.tar.gz && \
rm -rf /usr/local/go && \
tar -C /usr/local -xzf go1.19.4.linux-amd64.tar.gz && \
ln -s /usr/local/go/bin/go /usr/bin/go && \
rm -vf go1.19.4.linux-amd64.tar.gz
# Install v2ray
WORKDIR /root/v2ray
RUN wget https://github.com/v2fly/v2ray-core/releases/download/v5.3.0/v2ray-linux-64.zip && \
unzip v2ray-linux-64.zip && \
rm -vf v2ray-linux-64.zip
# Install unbound
WORKDIR /tmp
RUN git clone https://github.com/NLnetLabs/unbound.git && \
cd unbound && \
./configure && \
make && \
make install && \
rm -rf /tmp/*
# Install dvpn-node
WORKDIR /tmp
RUN git clone https://github.com/sentinel-official/dvpn-node && \
cd dvpn-node && \
git checkout v0.7.1 && \
make install && \
rm -rf /tmp/*
# Copy the main script and set CMD
COPY ./main.sh /
RUN sed -i 's/\r//' /main.sh && chmod +x /main.sh
CMD ["/main.sh"]