Skip to content

Commit

Permalink
Single stage docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Feb 11, 2024
1 parent 5e4f5f7 commit e0c8443
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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}"]
ENTRYPOINT ["/bin/bash", "-c", "./target/release/mutinynet-faucet-rs ${FLAGS}"]

0 comments on commit e0c8443

Please sign in to comment.