Spaces:
Running
Running
Alexandre de Souza
commited on
Commit
β’
81d25fd
1
Parent(s):
766736f
Update Dockerfile with injectable env vars
Browse files- Dockerfile +3 -6
Dockerfile
CHANGED
@@ -1,15 +1,12 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
-
ENV LIVEBOOK_APP_SERVICE_NAME "π³ Hugging Face -
|
4 |
-
ENV LIVEBOOK_APP_SERVICE_URL "https://huggingface.co/spaces
|
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
|