jackkuo commited on
Commit
d56083c
·
verified ·
1 Parent(s): fa5d12a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
  # =========================
2
- # Simple Python 3.11 environment
3
  # =========================
4
- FROM python:3.11-slim-bullseye AS final
5
  ENV PYTHONUNBUFFERED=1 \
6
  PIP_NO_CACHE_DIR=1
7
 
@@ -50,7 +50,7 @@ start_service() {
50
  (
51
  cd "$dir"
52
  while true; do
53
- echo "[startup] Starting $name (Python 3.11)…"
54
  set +e
55
  "$py" main.py
56
  exit_code=$?
@@ -78,7 +78,7 @@ fi
78
  sleep 5
79
 
80
  # Start frontend Streamlit
81
- echo "[startup] Starting Streamlit client (Python 3.11)…"
82
  cd "$HOME/app/client"
83
  export PORT="${PORT:-7860}"
84
  exec "$HOME/venvs/client/bin/python" -m streamlit run app.py --server.port="$PORT" --server.address=0.0.0.0
 
1
  # =========================
2
+ # Simple Python 3.12 environment
3
  # =========================
4
+ FROM python:3.12-slim-bullseye AS final
5
  ENV PYTHONUNBUFFERED=1 \
6
  PIP_NO_CACHE_DIR=1
7
 
 
50
  (
51
  cd "$dir"
52
  while true; do
53
+ echo "[startup] Starting $name (Python 3.12)…"
54
  set +e
55
  "$py" main.py
56
  exit_code=$?
 
78
  sleep 5
79
 
80
  # Start frontend Streamlit
81
+ echo "[startup] Starting Streamlit client (Python 3.12)…"
82
  cd "$HOME/app/client"
83
  export PORT="${PORT:-7860}"
84
  exec "$HOME/venvs/client/bin/python" -m streamlit run app.py --server.port="$PORT" --server.address=0.0.0.0