forked from zhayujie/chatgpt-on-wechat
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
27 lines (20 loc) · 1.06 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
FROM python:3.10-alpine
LABEL maintainer="[email protected]"
ARG TZ='Asia/Shanghai'
WORKDIR /app
COPY . .
ADD Country.mmdb /root/.config/clash/Country.mmdb
ADD config.yaml /root/.config/clash/config.yaml
RUN set -eux && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
RUN apk add --no-cache bash ffmpeg espeak \
&& cp config-template.json config.json \
&& /usr/local/bin/python -m pip install --no-cache --upgrade pip \
&& pip install numpy-1.24.1-cp310-cp310-linux_x86_64.whl \
&& pip install --no-cache -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --extra-index-url https://alpine-wheels.github.io/index\
&& pip install --no-cache -r requirements-optional.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --extra-index-url https://alpine-wheels.github.io/index
RUN apk update && apk add --no-cache openssl ca-certificates && \
gunzip clash-linux-amd64.gz && \
chmod +x clash-linux-amd64 && \
mv clash-linux-amd64 /usr/local/bin/clash
RUN chmod +x docker/entrypoint.sh
ENTRYPOINT ["docker/entrypoint.sh"]