Viraaj Sawant commited on
Commit
4d8258b
·
1 Parent(s): 18625ef

Fix Hugging Face Space configuration and port exposing

Browse files
rl_code_fix_env/README.md CHANGED
@@ -1,15 +1,12 @@
1
  ---
2
- title: Rl Code Fix Env Environment Server
3
  emoji: "🚀"
4
- colorFrom: green
5
- colorTo: purple
6
- sdk: docker
7
- pinned: false
8
- dockerfile: server/Dockerfile
9
  app_port: 8000
10
- base_path: /web
11
- tags:
12
- - openenv
13
  ---
14
 
15
  # Rl Code Fix Env Environment
 
1
  ---
2
+ title: "Rl Code Fix Env"
3
  emoji: "🚀"
4
+ colorFrom: "green"
5
+ colorTo: "purple"
6
+ sdk: "docker"
7
+ dockerfile: "server/Dockerfile"
 
8
  app_port: 8000
9
+ pinned: false
 
 
10
  ---
11
 
12
  # Rl Code Fix Env Environment
rl_code_fix_env/server/Dockerfile CHANGED
@@ -66,6 +66,9 @@ ENV PYTHONDONTWRITEBYTECODE="1"
66
  HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
67
  CMD curl -f http://localhost:8000/health || exit 1
68
 
 
 
 
69
  # Run the FastAPI server
70
  # The module path is constructed to work with the /app/env structure
71
  CMD ["sh", "-c", "cd /app/env && uvicorn server.app:app --host 0.0.0.0 --port 8000"]
 
66
  HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
67
  CMD curl -f http://localhost:8000/health || exit 1
68
 
69
+ # Expose the application port
70
+ EXPOSE 8000
71
+
72
  # Run the FastAPI server
73
  # The module path is constructed to work with the /app/env structure
74
  CMD ["sh", "-c", "cd /app/env && uvicorn server.app:app --host 0.0.0.0 --port 8000"]