burtenshaw HF Staff commited on
Commit
acbbfd4
·
verified ·
1 Parent(s): dd08ca9

Upload folder using huggingface_hub

Browse files
Dockerfile CHANGED
@@ -79,8 +79,7 @@ ENV PYTHONPATH="/app/env:$PYTHONPATH"
79
  HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
80
  CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')" || exit 1
81
 
82
- # Run the FastAPI server
83
- # The module path is constructed to work with the /app/env structure
84
- CMD ["sh", "-c", "cd /app/env && uvicorn server.app:app --host 0.0.0.0 --port 8000"]
85
 
86
  ENV ENABLE_WEB_INTERFACE=true
 
79
  HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
80
  CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')" || exit 1
81
 
82
+ # Run the FastAPI server from the installed package.
83
+ CMD ["uvicorn", "chess_env.server.app:app", "--host", "0.0.0.0", "--port", "8000"]
 
84
 
85
  ENV ENABLE_WEB_INTERFACE=true
envs/chess_env/server/Dockerfile CHANGED
@@ -75,6 +75,5 @@ ENV PYTHONPATH="/app/env:$PYTHONPATH"
75
  HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
76
  CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')" || exit 1
77
 
78
- # Run the FastAPI server
79
- # The module path is constructed to work with the /app/env structure
80
- CMD ["sh", "-c", "cd /app/env && uvicorn server.app:app --host 0.0.0.0 --port 8000"]
 
75
  HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
76
  CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')" || exit 1
77
 
78
+ # Run the FastAPI server from the installed package.
79
+ CMD ["uvicorn", "chess_env.server.app:app", "--host", "0.0.0.0", "--port", "8000"]
 
server/Dockerfile CHANGED
@@ -75,6 +75,5 @@ ENV PYTHONPATH="/app/env:$PYTHONPATH"
75
  HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
76
  CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')" || exit 1
77
 
78
- # Run the FastAPI server
79
- # The module path is constructed to work with the /app/env structure
80
- CMD ["sh", "-c", "cd /app/env && uvicorn server.app:app --host 0.0.0.0 --port 8000"]
 
75
  HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
76
  CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')" || exit 1
77
 
78
+ # Run the FastAPI server from the installed package.
79
+ CMD ["uvicorn", "chess_env.server.app:app", "--host", "0.0.0.0", "--port", "8000"]