Skip to content

Commit

Permalink
Add containerfile for oha
Browse files Browse the repository at this point in the history
Useful to build and run oha wihtout Rust tooling installed locally.
  • Loading branch information
tonyskapunk committed Dec 11, 2023
1 parent 68ecf89 commit 88bb817
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ARG RUST_VERSION=1.74
FROM docker.io/library/rust:${RUST_VERSION} AS build
WORKDIR /app
COPY . /app

RUN cargo install --path .

# Target image
FROM registry.fedoraproject.org/fedora-minimal
USER 65535

COPY --chown=65535:65535 --from=build /usr/local/cargo/bin/oha /bin/oha

ENTRYPOINT ["/bin/oha"]

0 comments on commit 88bb817

Please sign in to comment.