mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
Update Dockerfiles to bookworm, successfully
Removes use of the Parity CI image. Always uses slim variants.
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user