dvalle08 commited on
Commit
0bac71a
·
1 Parent(s): 1ec6fec

Update Dockerfile for Python 3.12 compatibility: Modify base image, add start.sh script, and adjust entrypoint for improved application startup.

Browse files
Files changed (2) hide show
  1. Dockerfile +5 -2
  2. start.sh +8 -0
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
@@ -14,6 +14,9 @@ COPY pyproject.toml uv.lock ./
14
  RUN uv sync --frozen --no-dev
15
 
16
  COPY src/ ./src/
 
 
 
17
 
18
  ENV PATH="/app/.venv/bin:$PATH"
19
 
@@ -21,4 +24,4 @@ EXPOSE 8501
21
 
22
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
23
 
24
- ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
1
+ FROM python:3.12-slim
2
 
3
  WORKDIR /app
4
 
 
14
  RUN uv sync --frozen --no-dev
15
 
16
  COPY src/ ./src/
17
+ COPY start.sh ./
18
+
19
+ RUN chmod +x /app/start.sh
20
 
21
  ENV PATH="/app/.venv/bin:$PATH"
22
 
 
24
 
25
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
26
 
27
+ ENTRYPOINT ["/app/start.sh"]
start.sh ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ echo "Starting LiveKit agent..."
5
+ uv run src/agent/agent.py start &
6
+
7
+ echo "Starting Streamlit app..."
8
+ exec streamlit run src/streamlit_app.py --server.port=8501 --server.address=0.0.0.0