Spaces:
Sleeping
Sleeping
Added docker env settings for HF Spaces
Browse files- Dockerfile +9 -0
Dockerfile
CHANGED
@@ -30,5 +30,14 @@ RUN bash ./scripts/EnvsSetup.sh
|
|
30 |
RUN conda run --live-stream -n WavJourney python scripts/download_models.py
|
31 |
RUN mkdir $HOME/app/services_logs
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
# entrypoint
|
34 |
ENTRYPOINT bash /home/user/app/scripts/start_service_and_ui.sh
|
|
|
30 |
RUN conda run --live-stream -n WavJourney python scripts/download_models.py
|
31 |
RUN mkdir $HOME/app/services_logs
|
32 |
|
33 |
+
# Env settings to get docker images to work on HF Spaces
|
34 |
+
ENV PYTHONPATH=${HOME}/app \
|
35 |
+
PYTHONUNBUFFERED=1 \
|
36 |
+
GRADIO_ALLOW_FLAGGING=never \
|
37 |
+
GRADIO_NUM_PORTS=1 \
|
38 |
+
GRADIO_SERVER_NAME=0.0.0.0 \
|
39 |
+
GRADIO_THEME=huggingface \
|
40 |
+
SYSTEM=spaces
|
41 |
+
|
42 |
# entrypoint
|
43 |
ENTRYPOINT bash /home/user/app/scripts/start_service_and_ui.sh
|