diff --git a/Dockerfile b/Dockerfile index fc929edb2..b0be43d58 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,17 +2,19 @@ FROM docker.io/library/rust:1.80-alpine AS builder # Update Alpine packages and install build dependencies -RUN apk update && apk add --no-cache --virtual .build-dependencies \ - musl-dev \ - protobuf \ - protobuf-dev +RUN apk update && \ + apk add --no-cache --virtual .build-dependencies \ + musl-dev \ + protobuf \ + protobuf-dev && \ + apk add --no-cache \ + llvm-libunwind # Copy the source code into the image COPY . /usr/src/sozu WORKDIR /usr/src/sozu # Build the application in release mode with a frozen lockfile -RUN cargo vendor --locked RUN cargo build --release --frozen # Stage 2: Create the runtime environment