diff options
| author | Leonard Kugis <leonard@kug.is> | 2026-10-03 04:44:13 +0200 |
|---|---|---|
| committer | Leonard Kugis <leonard@kug.is> | 2026-10-03 04:44:13 +0200 |
| commit | 15e82d6c9def95befad453c0c1de087e1ff821da (patch) | |
| tree | b8e8c6bbffbbf464bcc8212bf478b2a470734cca /Dockerfile | |
| parent | 1ce33d3575401ace614d898afece987f0be4b6fc (diff) | |
| download | aichat-15e82d6c9def95befad453c0c1de087e1ff821da.tar.gz | |
Fixed subquery tool double adding
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -1,6 +1,14 @@ FROM rust:1-alpine AS builder -RUN cargo install --locked aichat \ - && cargo install --locked argc + +# Set the working directory +WORKDIR /usr/src/app + +# Copy the local project files (since Dockerfile and project are in the same directory) +COPY . . + +# Build and install the local Rust program +RUN cargo install --path . --locked +RUN cargo install --locked argc FROM alpine:3.21 @@ -21,6 +29,7 @@ RUN apk add --no-cache \ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y +# Copy your newly built binary (replace with your actual crate name) COPY --from=builder /usr/local/cargo/bin/aichat /usr/local/bin/aichat COPY --from=builder /usr/local/cargo/bin/argc /usr/local/bin/argc |
