-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (37 loc) · 1.45 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
FROM aipeach/fulltclash:dmeta AS compile-image
FROM python:3.11.7-slim-bookworm
ENV TZ=Asia/Shanghai
ENV admin=12345678
ENV api_id=123456
ENV api_hash=ABCDEFG
ENV bot_token=123456:ABCDEFG
ENV branch=origin
ENV core=4
ENV startup=1124
ENV speednodes=300
ENV speedthread=4
ENV nospeed=true
WORKDIR /app
COPY --chmod=755 docker-entrypoint.sh /opt/
RUN apt-get update && \
apt-get install --no-install-recommends -y \
git tzdata curl wget jq bash nano cron && \
git clone -b dev --single-branch --depth=1 https://github.com/AirportR/FullTclash.git /app && \
git clone --single-branch --depth=1 https://github.com/twitter/twemoji.git /app/resources/emoji/twemoji && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone && \
mkdir /etc/supervisord.d && \
mv /app/docker/supervisord.conf /etc/supervisord.conf && \
mv /app/docker/fulltclash.conf /etc/supervisord.d/fulltclash.conf && \
cp /app/docker/crontab /etc/cron.d/crontab && \
chmod 0644 /etc/cron.d/crontab && \
/usr/bin/crontab /etc/cron.d/crontab && \
chmod +x /app/docker/fulltcore.sh && \
bash /app/docker/fulltcore.sh && \
chmod +x /app/docker/update.sh && \
chmod +x /app/docker/docker-entrypoint.sh && \
rm -rf /var/lib/apt/lists/*
COPY --from=compile-image /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=compile-image /opt/venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
ENTRYPOINT ["/opt/docker-entrypoint.sh"]