fix: add .dockerignore and debug binary in Dockerfile

This commit is contained in:
2026-03-28 15:36:06 +01:00
parent 0c1f09529a
commit 533b9d265e
2 changed files with 7 additions and 2 deletions

3
.dockerignore Normal file
View File

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

View File

@@ -30,9 +30,11 @@ WORKDIR /app
COPY basedosdados.duckdb Caddyfile start.sh auth.py ./ COPY basedosdados.duckdb Caddyfile start.sh auth.py ./
COPY ask/ ./ask/ COPY ask/ ./ask/
RUN cd ask && ~/.cargo/bin/cargo build --release && \ RUN cd ask && /root/.cargo/bin/cargo build --release && \
mv target/release/ask /app/ask && \ mv target/release/ask /app/ask && \
rm -rf target rm -rf target && \
file /app/ask && \
ldd /app/ask || true
RUN chmod +x start.sh /app/ask RUN chmod +x start.sh /app/ask
EXPOSE 8080 EXPOSE 8080