zyxciss commited on
Commit
776db17
·
verified ·
1 Parent(s): 1e33fc5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
  FROM ghcr.io/remsky/kokoro-fastapi-cpu:v0.2.0post3
2
- # Optional: set the environment variable if your app supports it
3
- ENV PORT=8880
4
  EXPOSE 8880
5
- # If the image already includes the correct CMD, you may not need to override it.
6
- # Otherwise, ensure the command starts the server binding to 0.0.0.0, for example:
7
- # CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8880"]
 
1
  FROM ghcr.io/remsky/kokoro-fastapi-cpu:v0.2.0post3
2
+
3
+ # Expose port (though Spaces sets this dynamically)
4
  EXPOSE 8880
5
+
6
+ # Use the Hugging Face provided PORT environment variable
7
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "${PORT}"]