Update Dockerfiles to bookworm, successfully

Removes use of the Parity CI image. Always uses slim variants.
This commit is contained in:
Luke Parker
2023-07-26 03:06:01 -04:00
parent 0eb56406a4
commit 39eae2795f
5 changed files with 33 additions and 30 deletions

View File

@@ -1,4 +1,4 @@
FROM rust:1.71 as builder
FROM rust:1.71-slim-bookworm as builder
LABEL description="STAGE 1: Build"
# Add files for build
@@ -29,7 +29,7 @@ RUN --mount=type=cache,target=/root/.cargo \
mv /serai/target/release/serai-message-queue /serai/bin
# Prepare Image
FROM debian:bullseye-slim as image
FROM debian:bookworm-slim as image
LABEL description="STAGE 2: Copy and Run"
WORKDIR /home/serai
@@ -38,6 +38,9 @@ WORKDIR /home/serai
COPY --from=builder /serai/bin/* /bin/
COPY --from=builder /serai/AGPL-3.0 .
# Upgrade packages
RUN apt update && apt upgrade -y
# Run message-queue
EXPOSE 2287
CMD ["serai-message-queue"]