-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.alpine
40 lines (33 loc) · 1.3 KB
/
Dockerfile.alpine
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
FROM aipeach/fulltclash:ameta AS compile-image
FROM python:3.11.7-alpine3.19
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 apk add --no-cache \
git tzdata curl jq wget bash nano && \
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 && \
echo "0 */6 * * * bash /app/docker/update.sh" >> /var/spool/cron/crontabs/root && \
mkdir /etc/supervisord.d && \
mv /app/docker/supervisord.conf /etc/supervisord.conf && \
mv /app/docker/fulltclash.conf /etc/supervisord.d/fulltclash.conf && \
chmod +x /app/docker/fulltcore.sh && \
bash /app/docker/fulltcore.sh && \
chmod +x /app/docker/update.sh && \
chmod +x /opt/docker-entrypoint.sh
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"]