Spaces:
Runtime error
Runtime error
Fix host binding: use 0.0.0.0 for HF Spaces proxy access
Browse files- 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
|
| 33 |
-
|
| 34 |
-
|
| 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
|
| 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"]
|