rjl9zf / Dockerfile
rao223's picture
Update Dockerfile
bdf4746 verified
raw
history blame
484 Bytes
FROM justsong/one-api
EXPOSE 3000
ENV PORT 3000
# ENV MEMORY_CACHE_ENABLED=true
# ENV SYNC_FREQUENCY=120
ENV THEME=berry
ENV BATCH_UPDATE_ENABLED=true
ENV BATCH_UPDATE_INTERVAL=120
ENV GLOBAL_WEB_RATE_LIMIT=600
ENV GLOBAL_API_RATE_LIMIT=1800
# ENV CHANNEL_UPDATE_FREQUENCY=1440
# ENV CHANNEL_TEST_FREQUENCY=1440
# ENV POLLING_INTERVAL=5
WORKDIR /data
# 添加一行指令来创建 /data/logs 目录并设置权限
RUN mkdir /data/logs && chmod 777 /data/logs
ENTRYPOINT ["/one-api"]