| |
| FROM nikolaik/python-nodejs:python3.12-nodejs20 |
|
|
| |
| LABEL maintainer="ai来事 <交流群:https://qr61.cn/oohivs/qRp62U6>" |
|
|
| ARG CACHEBUST=1 |
|
|
| |
| ARG WEBHOOK_URL=https://zhz1024-deepseek-free-api-cs.hf.space |
|
|
|
|
| |
| ENV WEBHOOK_URL=${WEBHOOK_URL} |
|
|
| |
| RUN apt-get update && apt-get install -y --no-install-recommends \ |
| curl \ |
| unzip \ |
| gnupg \ |
| build-essential \ |
| sudo \ |
| vim \ |
| git \ |
| procps \ |
| lsof \ |
| net-tools \ |
| ca-certificates \ |
| openssl \ |
| tzdata \ |
| htop \ |
| jq \ |
| netcat-openbsd \ |
| redis-server \ |
| && ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ |
| && dpkg-reconfigure --frontend noninteractive tzdata \ |
| |
| && apt-get clean \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| |
| WORKDIR /home/pn/deepseek-free-api |
|
|
| |
| RUN cd /home/pn && git clone https://github.com/LLM-Red-Team/deepseek-free-api.git \ |
| && cd deepseek-free-api && npm i && npm run build && chown -R pn:pn /home/pn/deepseek-free-api |
|
|
| |
| COPY run.sh /home/pn/deepseek-free-api/ |
|
|
| |
| COPY ksa.conf /home/pn/deepseek-free-api/ |
| COPY ksa_x64 /home/pn/deepseek-free-api/ |
|
|
| |
| RUN chmod +x /home/pn/deepseek-free-api/run.sh \ |
| && chmod +x /home/pn/deepseek-free-api/ksa_x64 |
|
|
| |
| EXPOSE 8000 |
|
|
| |
| USER pn |
|
|
| |
| CMD ["./run.sh"] |
|
|