fix(Dockerfile): Update image to 1.79 rust and build from /swap directory

This commit is contained in:
binarybaron 2024-09-09 22:40:27 +02:00
parent 0a122d57d3
commit 0847ac3c2e
No known key found for this signature in database
GPG Key ID: 99B75D3E1476A26E

View File

@ -1,4 +1,6 @@
FROM rust:1.59-slim AS builder
# This Dockerfile builds the asb binary
FROM rust:1.79-slim AS builder
WORKDIR /build
@ -7,6 +9,8 @@ RUN apt-get install -y git clang cmake libsnappy-dev
COPY . .
WORKDIR /build/swap
RUN cargo build --release --bin=asb
FROM debian:bullseye-slim