jammss commited on
Commit
0c89191
·
verified ·
1 Parent(s): ddcd8a8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -4
Dockerfile CHANGED
@@ -1,4 +1,11 @@
1
- FROM justsong/one-api-en:latest
2
- RUN mkdir /data/logs
3
- RUN chmod -R 777 /data
4
- EXPOSE 3000
 
 
 
 
 
 
 
 
1
+ FROM calciumion/new-api:latest
2
+ EXPOSE 3000
3
+ ENV PORT 3000
4
+ ENV BATCH_UPDATE_ENABLED=true
5
+ ENV BATCH_UPDATE_INTERVAL=120
6
+ ENV GLOBAL_WEB_RATE_LIMIT=600
7
+ ENV GLOBAL_API_RATE_LIMIT=1800
8
+ WORKDIR /data
9
+ RUN mkdir /data/logs && chmod 777 /data/logs
10
+ app_port: 3000
11
+ ENTRYPOINT ["/one-api"]