jonatanklosko commited on
Commit
8ea0b5d
β€’
1 Parent(s): dfb36e9

Update env vars

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -9
Dockerfile CHANGED
@@ -1,13 +1,13 @@
1
  FROM ghcr.io/livebook-dev/livebook:latest-cuda12.1
2
 
3
- ENV LIVEBOOK_APP_SERVICE_NAME "🐳 Hugging Face - $SPACE_TITLE"
4
- ENV LIVEBOOK_APP_SERVICE_URL "https://huggingface.co/spaces/$SPACE_AUTHOR_NAME/$SPACE_REPO_NAME"
5
- ENV LIVEBOOK_UPDATE_INSTRUCTIONS_URL "https://livebook.dev"
6
- ENV LIVEBOOK_WITHIN_IFRAME "true"
7
- ENV LIVEBOOK_APPS_PATH "/public-apps"
8
- ENV LIVEBOOK_APPS_PATH_WARMUP "manual"
9
- ENV LIVEBOOK_DATA_PATH "/data"
10
- ENV LIVEBOOK_PORT 7860
11
 
12
  EXPOSE 7860
13
 
@@ -16,9 +16,13 @@ RUN chmod 777 /data
16
 
17
  # The Space container runs with user ID 1000
18
  RUN useradd -m -u 1000 user
19
- ENV HOME=/home/user
20
 
21
  USER user
22
 
 
 
 
 
23
  COPY --chown=user public-apps/ /public-apps
24
  RUN /app/bin/warmup_apps
 
1
  FROM ghcr.io/livebook-dev/livebook:latest-cuda12.1
2
 
3
+ ENV LIVEBOOK_APP_SERVICE_NAME="🐳 Hugging Face - $SPACE_TITLE"
4
+ ENV LIVEBOOK_APP_SERVICE_URL="https://huggingface.co/spaces/$SPACE_AUTHOR_NAME/$SPACE_REPO_NAME"
5
+ ENV LIVEBOOK_UPDATE_INSTRUCTIONS_URL="https://livebook.dev"
6
+ ENV LIVEBOOK_WITHIN_IFRAME="true"
7
+ ENV LIVEBOOK_APPS_PATH="/public-apps"
8
+ ENV LIVEBOOK_APPS_PATH_WARMUP="manual"
9
+ ENV LIVEBOOK_DATA_PATH="/data"
10
+ ENV LIVEBOOK_PORT="7860"
11
 
12
  EXPOSE 7860
13
 
 
16
 
17
  # The Space container runs with user ID 1000
18
  RUN useradd -m -u 1000 user
19
+ ENV HOME="/home/user"
20
 
21
  USER user
22
 
23
+ # TODO: remove this once EXLA v0.8 is out and we infer the default from the environment
24
+ # Configure Nx/EXLA to use the GPU (also relevant for warmup_apps below)
25
+ ENV XLA_TARGET="cuda120"
26
+
27
  COPY --chown=user public-apps/ /public-apps
28
  RUN /app/bin/warmup_apps