fix: add .dockerignore and debug binary in Dockerfile
This commit is contained in:
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
ask/target
|
||||||
|
.git
|
||||||
|
*.md
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user