diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -1,8 +1,8 @@ -FROM rust:alpine +FROM rust:latest as builder WORKDIR /root -ENTRYPOINT ["target/release/hx"] +ENTRYPOINT ["hx"] LABEL org.label-schema.name="hx" \ - org.label-schema.description="Futuristic take on hexdump, made in rust" \ + org.label-schema.description="Futuristic take on hexdump, made in Rust." \ org.label-schema.url="https://hub.docker.com/r/sitkevij/hx" \ org.label-schema.usage="https://github.com/sitkevij/hex/blob/master/README.md" \ org.label-schema.vcs-url="https://github.com/sitkevij/hex" \ @@ -11,4 +11,10 @@ LABEL org.label-schema.name="hx" \ maintainer="https://github.com/sitkevij" ENV PATH=/root/.cargo/bin:$PATH COPY . . -RUN cargo build --release
\ No newline at end of file +RUN ls -lt +RUN cargo install --path . + +FROM debian:bookworm-slim +RUN apt-get update && rm -rf /var/lib/apt/lists/* +COPY --from=builder /usr/local/cargo/bin/hx /usr/local/bin/hx +ENTRYPOINT ["hx"] |