Spaces:
Sleeping
Sleeping
apple muncy
commited on
Commit
·
cd3df42
1
Parent(s):
5ede2ef
using port 7860
Browse filesSigned-off-by: apple muncy <apple@dell-deb-12-5.local>
- Dockerfile +1 -0
- README.md +1 -0
- auth_server.py +1 -1
Dockerfile
CHANGED
|
@@ -12,5 +12,6 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
| 12 |
|
| 13 |
COPY --chown=user . /home/user/app
|
| 14 |
|
|
|
|
| 15 |
|
| 16 |
ENTRYPOINT ["python", "auth_server.py"]
|
|
|
|
| 12 |
|
| 13 |
COPY --chown=user . /home/user/app
|
| 14 |
|
| 15 |
+
EXPOSE 7860
|
| 16 |
|
| 17 |
ENTRYPOINT ["python", "auth_server.py"]
|
README.md
CHANGED
|
@@ -7,6 +7,7 @@ sdk: docker
|
|
| 7 |
pinned: true
|
| 8 |
license: apache-2.0
|
| 9 |
short_description: simple Auth Server
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 7 |
pinned: true
|
| 8 |
license: apache-2.0
|
| 9 |
short_description: simple Auth Server
|
| 10 |
+
app_port: 7860
|
| 11 |
---
|
| 12 |
|
| 13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
auth_server.py
CHANGED
|
@@ -158,7 +158,7 @@ async def run_server(server_settings: AuthServerSettings, auth_settings: SimpleA
|
|
| 158 |
|
| 159 |
|
| 160 |
@click.command()
|
| 161 |
-
@click.option("--port", default=
|
| 162 |
def main(port: int) -> int:
|
| 163 |
"""
|
| 164 |
Run the MCP Authorization Server.
|
|
|
|
| 158 |
|
| 159 |
|
| 160 |
@click.command()
|
| 161 |
+
@click.option("--port", default=7860, help="Port to listen on")
|
| 162 |
def main(port: int) -> int:
|
| 163 |
"""
|
| 164 |
Run the MCP Authorization Server.
|