Install perf tools in production containers (#8957)
Release Notes: - N/A
This commit is contained in:
parent
8eb0239d5a
commit
563c4db350
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
# syntax = docker/dockerfile:1.2
|
# syntax = docker/dockerfile:1.2
|
||||||
|
|
||||||
FROM rust:1.76-bullseye as builder
|
FROM rust:1.76-bookworm as builder
|
||||||
WORKDIR app
|
WORKDIR app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
@ -20,9 +20,9 @@ RUN --mount=type=cache,target=./target \
|
||||||
cp /app/target/release/collab /app/collab
|
cp /app/target/release/collab /app/collab
|
||||||
|
|
||||||
# Copy collab server binary to the runtime image
|
# Copy collab server binary to the runtime image
|
||||||
FROM debian:bullseye-slim as runtime
|
FROM debian:bookworm-slim as runtime
|
||||||
RUN apt-get update; \
|
RUN apt-get update; \
|
||||||
apt-get install -y --no-install-recommends libcurl4-openssl-dev ca-certificates
|
apt-get install -y --no-install-recommends libcurl4-openssl-dev ca-certificates linux-perf
|
||||||
WORKDIR app
|
WORKDIR app
|
||||||
COPY --from=builder /app/collab /app/collab
|
COPY --from=builder /app/collab /app/collab
|
||||||
COPY --from=builder /app/crates/collab/migrations /app/migrations
|
COPY --from=builder /app/crates/collab/migrations /app/migrations
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue