frascuchon HF Staff commited on
Commit
b59a390
·
verified ·
1 Parent(s): ac4f125

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -21
Dockerfile CHANGED
@@ -6,25 +6,12 @@ COPY .oauth.yaml /home/argilla/
6
 
7
  COPY log_config.yaml /home/argilla/
8
 
9
- # Define datasets to preload: full=all datasets, single=one dataset, and none=no datasets.
10
- ENV OAUTH_ID=""
11
-
 
 
 
 
 
12
  ENV UVICORN_LOG_CONFIG=/home/argilla/log_config.yaml
13
-
14
- # Uncomment the next section to keep backward compatibility with previous versions
15
- ## Following variables are used for backward compatibility with the previous security setup for the quickstart image
16
- #ENV ADMIN_USERNAME="team"
17
- #ENV ADMIN_API_KEY="team.apikey"
18
- ## The password has a minimum length of 8. Passwords with lower lengths will fail.
19
- #ENV ADMIN_PASSWORD=12345678
20
- #
21
- #ENV ANNOTATOR_USERNAME="argilla"
22
- ## The password has a minimum length of 8. Passwords with lower lengths will fail.
23
- #ENV ANNOTATOR_PASSWORD=12345678
24
- #
25
- #ENV ARGILLA_WORKSPACE="team"
26
- #
27
-
28
- #CMD ["honcho", "start"]
29
-
30
- # CMD ["printenv"]
 
6
 
7
  COPY log_config.yaml /home/argilla/
8
 
9
+ ENV UVICORN_WORKERS=4
10
+ ENV UVICORN_LOOP=uvloop
11
+ ENV UVICORN_HTTP=httptools
12
+ ENV UVICORN_LIFESPAN=ON
13
+ ENV UVICORN_BACKLOG=1024
14
+ ENV UVICORN_LIMIT_CONCURRENCY=2048
15
+ ENV UVICORN_TIMEOUT_KEEP_ALIVE=1
16
+ ENV UVICORN_TIMEOUT_GRACEFUL_SHUTDOWN=5
17
  ENV UVICORN_LOG_CONFIG=/home/argilla/log_config.yaml