jbilcke-hf HF staff commited on
Commit
eb138fd
1 Parent(s): 8a579f9

declare vars in the Dockerfile

Browse files
Files changed (2) hide show
  1. .env +5 -5
  2. Dockerfile +34 -0
.env CHANGED
@@ -14,16 +14,16 @@ RENDERING_ENGINE="INFERENCE_API"
14
  LLM_ENGINE="INFERENCE_API"
15
 
16
  # set this to control the number of pages
17
- #NEXT_PUBLIC_MAX_NB_PAGES=
18
 
19
  # Set to "true" to create artificial delays and smooth out traffic
20
  NEXT_PUBLIC_ENABLE_RATE_LIMITER="false"
21
 
22
  # ------------- HUGGING FACE OAUTH -------------
23
- #NEXT_PUBLIC_ENABLE_HUGGING_FACE_OAUTH=
24
- #NEXT_PUBLIC_ENABLE_HUGGING_FACE_OAUTH_WALL=
25
- #NEXT_PUBLIC_HUGGING_FACE_OAUTH_CLIENT_ID=""
26
- #HUGGING_FACE_OAUTH_SECRET=""
27
 
28
  # ------------- PROVIDER AUTH ------------
29
  # You only need to configure the access token(s) for the provider(s) you want to use
 
14
  LLM_ENGINE="INFERENCE_API"
15
 
16
  # set this to control the number of pages
17
+ NEXT_PUBLIC_MAX_NB_PAGES=
18
 
19
  # Set to "true" to create artificial delays and smooth out traffic
20
  NEXT_PUBLIC_ENABLE_RATE_LIMITER="false"
21
 
22
  # ------------- HUGGING FACE OAUTH -------------
23
+ NEXT_PUBLIC_ENABLE_HUGGING_FACE_OAUTH=
24
+ NEXT_PUBLIC_ENABLE_HUGGING_FACE_OAUTH_WALL=
25
+ NEXT_PUBLIC_HUGGING_FACE_OAUTH_CLIENT_ID=""
26
+ HUGGING_FACE_OAUTH_SECRET=""
27
 
28
  # ------------- PROVIDER AUTH ------------
29
  # You only need to configure the access token(s) for the provider(s) you want to use
Dockerfile CHANGED
@@ -1,5 +1,39 @@
1
  FROM node:20-alpine AS base
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  # Install dependencies only when needed
4
  FROM base AS deps
5
  # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
 
1
  FROM node:20-alpine AS base
2
 
3
+ ARG RENDERING_ENGINE
4
+ ARG LLM_ENGINE
5
+ ARG NEXT_PUBLIC_MAX_NB_PAGES
6
+ ARG NEXT_PUBLIC_ENABLE_RATE_LIMITER
7
+ ARG NEXT_PUBLIC_ENABLE_HUGGING_FACE_OAUTH
8
+ ARG NEXT_PUBLIC_ENABLE_HUGGING_FACE_OAUTH_WALL
9
+ ARG NEXT_PUBLIC_HUGGING_FACE_OAUTH_CLIENT_ID
10
+ ARG HUGGING_FACE_OAUTH_SECRET
11
+ ARG AUTH_HF_API_TOKEN
12
+ ARG AUTH_REPLICATE_API_TOKEN
13
+ ARG AUTH_OPENAI_API_KEY
14
+ ARG AUTH_VIDEOCHAIN_API_TOKEN
15
+ ARG AUTH_GROQ_API_KEY
16
+ ARG RENDERING_REPLICATE_API_MODEL
17
+ ARG ENDERING_REPLICATE_API_MODEL_VERSION
18
+ ARG RENDERING_HF_INFERENCE_ENDPOINT_URL
19
+ ARG RENDERING_HF_INFERENCE_API_BASE_MODEL
20
+ ARG RENDERING_HF_INFERENCE_API_REFINER_MODEL
21
+ ARG RENDERING_HF_INFERENCE_API_FILE_TYPE
22
+ ARG RENDERING_VIDEOCHAIN_API_URL
23
+ ARG RENDERING_OPENAI_API_BASE_URL
24
+ ARG RENDERING_OPENAI_API_MODEL
25
+ ARG LLM_GROQ_API_MODEL
26
+ ARG LLM_OPENAI_API_BASE_URL
27
+ ARG LLM_OPENAI_API_MODEL
28
+ ARG LLM_HF_INFERENCE_ENDPOINT_URL
29
+ ARG LLM_HF_INFERENCE_API_MODEL
30
+ ARG NEXT_PUBLIC_ENABLE_COMMUNITY_SHARING
31
+ ARG COMMUNITY_API_URL
32
+ ARG COMMUNITY_API_TOKEN
33
+ ARG COMMUNITY_API_ID
34
+ ARG ENABLE_CENSORSHIP
35
+ ARG SECRET_FINGERPRINT
36
+
37
  # Install dependencies only when needed
38
  FROM base AS deps
39
  # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.