Skip to content

Commit

Permalink
bullseye slim
Browse files Browse the repository at this point in the history
  • Loading branch information
Hampton Moore committed Jan 16, 2024
1 parent f670404 commit 87d3423
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Build stage
FROM rust:1.75-bullseye as builder
FROM rust:1.75-slim-bullseye as builder

RUN apt-get update
RUN apt-get install pkg-config libssl-dev -y

# Copy the source code
ADD . .
Expand All @@ -10,8 +13,10 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
cargo build --release

# Final stage
FROM debian:bullseye
FROM debian:bullseye-slim

RUN apt-get update
RUN apt-get install pkg-config libssl-dev -y

ENV COMMIT=${COMMIT}
ENV REF=${REF}
Expand Down

0 comments on commit 87d3423

Please sign in to comment.