Skip to content

Commit

Permalink
docker: build apps in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ghedo committed Jan 24, 2025
1 parent 94be8a4 commit 457809c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ COPY quiche/ ./quiche/

RUN apt-get update && apt-get install -y cmake && rm -rf /var/lib/apt/lists/*

RUN cargo build --manifest-path apps/Cargo.toml
RUN cargo build --release --manifest-path apps/Cargo.toml

##
## quiche-base: quiche image for apps
Expand All @@ -20,8 +20,8 @@ RUN apt-get update && apt-get install -y ca-certificates && \
rm -rf /var/lib/apt/lists/*

COPY --from=build \
/build/apps/target/debug/quiche-client \
/build/apps/target/debug/quiche-server \
/build/apps/target/release/quiche-client \
/build/apps/target/release/quiche-server \
/usr/local/bin/

ENV PATH="/usr/local/bin/:${PATH}"
Expand All @@ -39,8 +39,8 @@ WORKDIR /quiche
RUN apt-get update && apt-get install -y wait-for-it && rm -rf /var/lib/apt/lists/*

COPY --from=build \
/build/apps/target/debug/quiche-client \
/build/apps/target/debug/quiche-server \
/build/apps/target/release/quiche-client \
/build/apps/target/release/quiche-server \
/build/apps/run_endpoint.sh \
./

Expand Down

0 comments on commit 457809c

Please sign in to comment.