Skip to content

Commit

Permalink
Dockerfile tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
imikushin committed Jan 4, 2025
1 parent 14c42b5 commit cdbf75b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ RUN apk add --no-cache musl-dev openssl-dev pkgconfig openssl-libs-static
FROM base AS builder
WORKDIR /app
COPY . .
RUN cargo install --path .
RUN --mount=type=cache,target=/app/target \
--mount=type=cache,from=base,source=/usr/local/rustup,target=/usr/local/rustup \
cargo install --locked --path .

FROM alpine AS runtime
COPY --from=builder /usr/local/cargo/bin/charms /usr/local/bin
Expand Down
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate core;

pub mod app;
pub mod cli;
pub mod script;
Expand Down

0 comments on commit cdbf75b

Please sign in to comment.