nsarrazin HF staff commited on
Commit
feecbdf
β€’
1 Parent(s): 29bbaa5

making things more consistent

Browse files
.template.env.local β†’ .env.local.template RENAMED
File without changes
Dockerfile CHANGED
@@ -27,7 +27,8 @@ RUN --mount=type=secret,id=MODEL_NAME,mode=0444 \
27
  && MONGODB_URL=$(cat /run/secrets/MONGODB_URL 2> /dev/null | grep '^' || cat /defaults/MONGODB_URL) && export MONGODB_URL \
28
  && APP_COLOR=$(cat /run/secrets/APP_COLOR 2> /dev/null | grep '^' || cat /defaults/APP_COLOR) && export APP_COLOR \
29
  && APP_NAME=$(cat /run/secrets/APP_NAME 2> /dev/null | grep '^' || cat /defaults/APP_NAME) && export APP_NAME \
30
- && envsubst < ".template.env.local" > ".env.local"
 
31
 
32
 
33
 
@@ -42,6 +43,13 @@ FROM ghcr.io/huggingface/text-generation-inference:latest
42
  ENV TZ=Europe/Paris \
43
  PORT=3000
44
 
 
 
 
 
 
 
 
45
  COPY entrypoint.sh.template entrypoint.sh.template
46
 
47
  RUN mkdir defaults
@@ -57,14 +65,10 @@ RUN --mount=type=secret,id=MODEL_NAME,mode=0444 \
57
  && MONGODB_URL=$(cat /run/secrets/MONGODB_URL 2> /dev/null | grep '^' || cat /defaults/MONGODB_URL) && export MONGODB_URL \
58
  && APP_COLOR=$(cat /run/secrets/APP_COLOR 2> /dev/null | grep '^' || cat /defaults/APP_COLOR) && export APP_COLOR \
59
  && APP_NAME=$(cat /run/secrets/APP_NAME 2> /dev/null | grep '^' || cat /defaults/APP_NAME) && export APP_NAME \
60
- && envsubst < "entrypoint.sh.template" > "entrypoint.sh"
 
61
 
62
 
63
- RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
64
- gnupg \
65
- curl && \
66
- rm -rf /var/lib/apt/lists/*
67
-
68
  RUN curl -fsSL https://pgp.mongodb.com/server-6.0.asc | \
69
  gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg \
70
  --dearmor
 
27
  && MONGODB_URL=$(cat /run/secrets/MONGODB_URL 2> /dev/null | grep '^' || cat /defaults/MONGODB_URL) && export MONGODB_URL \
28
  && APP_COLOR=$(cat /run/secrets/APP_COLOR 2> /dev/null | grep '^' || cat /defaults/APP_COLOR) && export APP_COLOR \
29
  && APP_NAME=$(cat /run/secrets/APP_NAME 2> /dev/null | grep '^' || cat /defaults/APP_NAME) && export APP_NAME \
30
+ && envsubst < ".env.local.template" > ".env.local" \
31
+ && rm .env.local.template
32
 
33
 
34
 
 
43
  ENV TZ=Europe/Paris \
44
  PORT=3000
45
 
46
+
47
+
48
+ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
49
+ gnupg \
50
+ curl \
51
+ gettext && \
52
+ rm -rf /var/lib/apt/lists/*
53
  COPY entrypoint.sh.template entrypoint.sh.template
54
 
55
  RUN mkdir defaults
 
65
  && MONGODB_URL=$(cat /run/secrets/MONGODB_URL 2> /dev/null | grep '^' || cat /defaults/MONGODB_URL) && export MONGODB_URL \
66
  && APP_COLOR=$(cat /run/secrets/APP_COLOR 2> /dev/null | grep '^' || cat /defaults/APP_COLOR) && export APP_COLOR \
67
  && APP_NAME=$(cat /run/secrets/APP_NAME 2> /dev/null | grep '^' || cat /defaults/APP_NAME) && export APP_NAME \
68
+ && envsubst < "entrypoint.sh.template" > "entrypoint.sh" \
69
+ && rm entrypoint.sh.template
70
 
71
 
 
 
 
 
 
72
  RUN curl -fsSL https://pgp.mongodb.com/server-6.0.asc | \
73
  gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg \
74
  --dearmor