From e0c8443d402da95ff9a70233e868a0ab59644caa Mon Sep 17 00:00:00 2001 From: benthecarman Date: Sun, 11 Feb 2024 14:52:47 +0000 Subject: [PATCH] Single stage docker build --- Dockerfile | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index c93ac02..2fb7367 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,3 @@ -# Build Stage FROM rust:1.67.0 AS builder RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends clang cmake build-essential @@ -9,14 +8,4 @@ COPY . . RUN cargo build --release -# Run Stage -FROM debian:buster-slim - -# Install OpenSSL -RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends libssl1.1 - -WORKDIR /app - -COPY --from=builder /app/target/release/mutinynet-faucet-rs /app/mutinynet-faucet-rs - -ENTRYPOINT ["/bin/bash", "-c", "./mutinynet-faucet-rs ${FLAGS}"] \ No newline at end of file +ENTRYPOINT ["/bin/bash", "-c", "./target/release/mutinynet-faucet-rs ${FLAGS}"]