forked from lihaixin2/lantern
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile
17 lines (15 loc) · 796 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM ubuntu:20.04
MAINTAINER weilong <wilonx@163.com>
WORKDIR /root
RUN apt-get update && \
apt-get -y install wget libappindicator3-1 libpcap0.8 && \
wget https://github.com/getlantern/lantern-binaries/raw/main/lantern-installer-64-bit.deb && \
dpkg -i lantern-installer-64-bit.deb && \
rm -rf lantern-installer-64-bit.deb && \
apt-get -f install && \
apt-get clean && \
rm -rf /var/cache/apt/* /var/lib/apt/lists/* && \
mkdir /root/.lantern && \
echo "localHTTPToken: wilonlantern" > /root/settings.yaml
EXPOSE 3128/tcp 8080/tcp
ENTRYPOINT ["/usr/bin/lantern", "--configdir=/root", "--headless=true", "--proxyall=true", "--startup=false", "--clear-proxy-settings=false", "--addr=0.0.0.0:3128", "--uiaddr=0.0.0.0:8080"]