fabricationworkshop commited on
Commit
99810a9
·
verified ·
1 Parent(s): 4bee39c

Fix host binding: use 0.0.0.0 for HF Spaces proxy access

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -10
Dockerfile CHANGED
@@ -28,16 +28,13 @@ WORKDIR /home/user/app/acestep
28
  # Install dependencies
29
  RUN uv sync
30
 
31
- # Write config for the API
32
- RUN echo 'ACESTEP_CONFIG_PATH=acestep-v15-turbo\n\
33
- ACESTEP_LM_MODEL_PATH=acestep-5Hz-lm-0.6B\n\
34
- ACESTEP_LM_BACKEND=pt\n\
35
- ACESTEP_API_PORT=7860\n\
36
- LANGUAGE=en' > .env
37
-
38
- # HF Spaces requires port 7860
39
  ENV ACESTEP_API_PORT=7860
 
40
  EXPOSE 7860
41
 
42
- # Start the ACE-Step API on port 7860
43
- CMD ["uv", "run", "acestep-api", "--port", "7860"]
 
28
  # Install dependencies
29
  RUN uv sync
30
 
31
+ # Write config for the API (printf for proper newlines)
32
+ RUN printf 'ACESTEP_CONFIG_PATH=acestep-v15-turbo\nACESTEP_LM_MODEL_PATH=acestep-5Hz-lm-0.6B\nACESTEP_LM_BACKEND=pt\nACESTEP_API_PORT=7860\nLANGUAGE=en\n' > .env
33
+
34
+ # HF Spaces requires port 7860 and host 0.0.0.0
 
 
 
 
35
  ENV ACESTEP_API_PORT=7860
36
+ ENV ACESTEP_API_HOST=0.0.0.0
37
  EXPOSE 7860
38
 
39
+ # Start the ACE-Step API on 0.0.0.0:7860
40
+ CMD ["uv", "run", "acestep-api", "--host", "0.0.0.0", "--port", "7860"]