Dmitry Beresnev commited on
Commit ·
47f9a0d
1
Parent(s): 969d174
fix dockerfile
Browse filesFiles changed (2)
- Dockerfile+5-6
- app.py+9-5
12342 unmodified lines7891011121314151616 unmodified lines333435363738394041424344FROM python:3.13-slimWORKDIR /app2 unmodified linesbash \curl \ca-certificates \caddy \ffmpeg \git \supervisor \&& curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \&& apt-get install -y --no-install-recommends nodejs \&& npm install -g openclaw \16 unmodified linesENV OPENCLAW_HOME=/app/.openclawENV OPENCLAW_STATE_DIR=/app/.openclaw/stateENV AUTO_START_GATEWAY=0ENV EXTERNAL_GATEWAY_MANAGED=1ENV OPENCLAW_STANDARD_UI_PUBLIC_URL=/openclaw/ENV OPENCLAW_GATEWAY_LOG_PATH=/tmp/openclaw-gateway.logRUN mkdir -p /app/vault /app/.openclaw/stateEXPOSE 7860CMD ["supervisord", "-c", "/app/supervisord.conf"]12342 unmodified lines789101112131416 unmodified lines31323334353637383940414243FROM python:3.11-slimWORKDIR /app2 unmodified linesbash \curl \ca-certificates \ffmpeg \git \&& curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \&& apt-get install -y --no-install-recommends nodejs \&& npm install -g openclaw \16 unmodified linesENV OPENCLAW_HOME=/app/.openclawENV OPENCLAW_STATE_DIR=/app/.openclaw/stateENV AUTO_START_GATEWAY=0ENV EXTERNAL_GATEWAY_MANAGED=0ENV OPENCLAW_STANDARD_UI_PUBLIC_URL=ENV OPENCLAW_GATEWAY_LOG_PATH=/tmp/openclaw-gateway.logENV OPENCLAW_GATEWAY_ERR_LOG_PATH=/tmp/openclaw-gateway.err.logRUN mkdir -p /app/vault /app/.openclaw/stateEXPOSE 7860CMD ["sh", "-c", "${OPENCLAW_BIN} gateway run --port ${OPENCLAW_PORT} --bind loopback --allow-unconfigured --dev --force --verbose > /tmp/openclaw-gateway.log 2> /tmp/openclaw-gateway.err.log & exec uv run streamlit run app.py --server.address=0.0.0.0 --server.port=7860"]
417 unmodified lines418419420421422423424425426427428417 unmodified linescomponents.iframe(public_ui_url, height=560, scrolling=True)st.link_button("Open Standard UI", public_ui_url, use_container_width=True)else:st.warning("Localhost UI cannot be embedded from Hugging Face browser sessions. ""Set OPENCLAW_STANDARD_UI_PUBLIC_URL to a public endpoint if you want iframe/embed.")st.info("Gateway can still run and be tested via this Streamlit control center.")st.divider()417 unmodified lines418419420421422423424425426427428429430431432417 unmodified linescomponents.iframe(public_ui_url, height=560, scrolling=True)st.link_button("Open Standard UI", public_ui_url, use_container_width=True)else:try:local_resp = requests.get(std_ui_url, timeout=3, allow_redirects=True)if local_resp.status_code < 500 and local_resp.text.strip():components.html(local_resp.text, height=560, scrolling=True)st.caption("Rendered from internal gateway response.")else:st.info("Standard UI is not reachable yet. Start gateway and refresh.")except Exception:st.info("Standard UI is not reachable yet. Start gateway and refresh.")st.divider()
Dockerfile+5-6
app.py+9-5