uvpatel7271 commited on
Commit
db7afce
·
1 Parent(s): 5334008

docker changes

Browse files
Files changed (2) hide show
  1. server/Dockerfile +10 -3
  2. server/requirements.txt +1 -0
server/Dockerfile CHANGED
@@ -6,9 +6,16 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
6
 
7
  WORKDIR /app
8
 
9
- COPY pyproject.toml README.md DEMO_SCRIPT.md openenv.yaml __init__.py client.py compat.py models.py inference.py triage.py triage_catalog.py triage_models.py /app/
 
 
 
 
 
10
  COPY server /app/server
 
11
  COPY tasks /app/tasks
 
12
  COPY graders /app/graders
13
 
14
  RUN python -m pip install --upgrade pip && \
@@ -17,6 +24,6 @@ RUN python -m pip install --upgrade pip && \
17
  EXPOSE 8000
18
 
19
  HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
20
- CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=3).read()"
21
 
22
- CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "8000"]
 
6
 
7
  WORKDIR /app
8
 
9
+ COPY pyproject.toml README.md DEMO_SCRIPT.md openenv.yaml __init__.py client.py compat.py openenv_models.py inference.py triage.py triage_catalog.py triage_models.py launch.py /app/
10
+ COPY api /app/api
11
+ COPY app /app/app
12
+ COPY analyzers /app/analyzers
13
+ COPY models /app/models
14
+ COPY schemas /app/schemas
15
  COPY server /app/server
16
+ COPY services /app/services
17
  COPY tasks /app/tasks
18
+ COPY utils /app/utils
19
  COPY graders /app/graders
20
 
21
  RUN python -m pip install --upgrade pip && \
 
24
  EXPOSE 8000
25
 
26
  HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
27
+ CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000', timeout=3).read()"
28
 
29
+ CMD ["python", "launch.py"]
server/requirements.txt CHANGED
@@ -4,5 +4,6 @@ gradio>=5.26.0
4
  uvicorn>=0.30.0
5
  pytest>=8.0.0
6
  openai>=1.76.0
 
7
  torch>=2.2.0
8
  transformers>=4.45.0
 
4
  uvicorn>=0.30.0
5
  pytest>=8.0.0
6
  openai>=1.76.0
7
+ streamlit>=1.44.0
8
  torch>=2.2.0
9
  transformers>=4.45.0