fix: use Python ask.py instead of Rust binary to avoid compilation

This commit is contained in:
2026-03-28 15:46:48 +01:00
parent 533b9d265e
commit 3788e2cc81
4 changed files with 5 additions and 10 deletions

View File

@@ -1,3 +1,4 @@
ask/target
ask/src
.git
*.md

View File

@@ -28,14 +28,8 @@ ENV PATH="/root/.cargo/bin:${PATH}" \
WORKDIR /app
COPY basedosdados.duckdb Caddyfile start.sh auth.py ./
COPY ask/ ./ask/
RUN cd ask && /root/.cargo/bin/cargo build --release && \
mv target/release/ask /app/ask && \
rm -rf target && \
file /app/ask && \
ldd /app/ask || true
RUN chmod +x start.sh /app/ask
COPY basedosdados.duckdb Caddyfile start.sh auth.py ask.py ./
RUN chmod +x start.sh
EXPOSE 8080

View File

@@ -695,7 +695,7 @@ fn draw_content(f: &mut Frame, app: &mut App, area: Rect) {
// Status bar
f.render_widget(
Paragraph::new(format!(
"✓ gen: {} consulta: {} {} linha(s)",
"✓ gerar SQL: {} consulta: {} {} resultado(s)",
gen_s, run_s, n
))
.style(Style::default().fg(Color::Green)),

View File

@@ -22,7 +22,7 @@ echo "[start] Starting ttyd terminal (db)..."
ttyd --port 7681 --writable duckdb -readonly --init /app/ssh_init.sql /app/basedosdados.duckdb &
echo "[start] Starting ttyd terminal (ask)..."
ttyd --port 7682 --writable /app/ask &
ttyd --port 7682 --writable python3 /app/ask.py &
echo "[start] Starting auth service..."
python3 /app/auth.py &