oneapi / Dockerfile
Chenhao
init
5a97508
raw
history blame
428 Bytes
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
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"]