10doshi12 commited on
Commit
d098762
·
1 Parent(s): db4322d

test: local dockerfile build and inference.py run works as intended

Browse files
Files changed (4) hide show
  1. .dockerignore +5 -2
  2. .env.example +7 -0
  3. .gitignore +1 -1
  4. server/Dockerfile +1 -0
.dockerignore CHANGED
@@ -10,6 +10,9 @@ __pycache__/
10
  inference.py
11
  client.py
12
  README.md
 
13
  *.md
14
- uv.lock
15
- openenv_firewatch_env.egg-info/
 
 
 
10
  inference.py
11
  client.py
12
  README.md
13
+ readme.md
14
  *.md
15
+ openenv_firewatch_env.egg-info/
16
+ .venv/
17
+ *.log
18
+ docs/
.env.example ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Required environment variables for inference.py
2
+ API_BASE_URL=https://router.huggingface.co/v1
3
+ MODEL_NAME=Qwen/Qwen2.5-7B-Instruct
4
+ HF_TOKEN=your_huggingface_token_here
5
+
6
+ # Optional: for local Docker testing
7
+ LOCAL_IMAGE_NAME=firewatch-env-local
.gitignore CHANGED
@@ -1,7 +1,7 @@
1
  .venv/
2
  openenv_firewatch_env.egg-info/
3
  .env
4
- .env.*
5
  __pycache__/
6
  *.pyc
7
  *.pyo
 
1
  .venv/
2
  openenv_firewatch_env.egg-info/
3
  .env
4
+ *.log
5
  __pycache__/
6
  *.pyc
7
  *.pyo
server/Dockerfile CHANGED
@@ -79,4 +79,5 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
79
 
80
  # Run the FastAPI server
81
  # The module path is constructed to work with the /app/env structure
 
82
  CMD ["sh", "-c", "cd /app/env && uvicorn server.app:app --host 0.0.0.0 --port 7860"]
 
79
 
80
  # Run the FastAPI server
81
  # The module path is constructed to work with the /app/env structure
82
+ ENV ENABLE_WEB_INTERFACE=true
83
  CMD ["sh", "-c", "cd /app/env && uvicorn server.app:app --host 0.0.0.0 --port 7860"]