Alexandre de Souza commited on
Commit
81d25fd
β€’
1 Parent(s): 766736f

Update Dockerfile with injectable env vars

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -1,15 +1,12 @@
1
- FROM aledsz/livebook:latest
2
 
3
- ENV LIVEBOOK_APP_SERVICE_NAME "🐳 Hugging Face - Livebook"
4
- ENV LIVEBOOK_APP_SERVICE_URL "https://huggingface.co/spaces/aleDsz/livebook"
5
  ENV LIVEBOOK_UPDATE_INSTRUCTIONS_URL "https://livebook.dev"
6
  ENV LIVEBOOK_WITHIN_IFRAME "true"
7
  ENV LIVEBOOK_DATA_PATH "/data"
8
  ENV LIVEBOOK_PORT 7860
9
 
10
- ARG MY_SECRET
11
- RUN echo $MY_SECRET > /secret.txt
12
-
13
  EXPOSE 7860
14
 
15
  USER root
 
1
+ FROM livebook/livebook:edge
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_DATA_PATH "/data"
8
  ENV LIVEBOOK_PORT 7860
9
 
 
 
 
10
  EXPOSE 7860
11
 
12
  USER root