File size: 468 Bytes
5a97508
 
 
 
 
 
 
 
 
 
 
 
 
 
0161d41
c9e3bf5
0161d41
5a97508
 
 
 
 
 
 
 
 
 
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

ARG HF_TOKEN
ARG HF_REPO_ID
ARG SYNC_INTERVAL

# 基于 alpine linux, 需要 /bin/ash
FROM justsong/one-api

# 从环境变量中设置端口
ENV PORT=7860

RUN mkdir /data/logs
RUN chmod -R 777 /data

RUN mkdir /sync
RUN chmod -R 777 /sync

WORKDIR /app
RUN chmod -R 777 /app
COPY . .
RUN apk update && \
    apk add --no-cache python3 py3-pip && \
    pip install -r requirements.txt --break-system-packages 


WORKDIR /data
ENTRYPOINT ["/bin/sh", "/app/start.sh"]