fix: use Python ask.py instead of Rust binary to avoid compilation
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user