mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
Use non-slim variants to remove needing to apt additional packages
Prevents needing to rebuild all the time via allowing cache hits.
This commit is contained in:
@@ -16,8 +16,6 @@ ADD AGPL-3.0 /serai
|
||||
|
||||
WORKDIR /serai
|
||||
|
||||
RUN apt update && apt upgrade -y
|
||||
|
||||
# Mount the caches and build
|
||||
RUN --mount=type=cache,target=/root/.cargo/ \
|
||||
--mount=type=cache,target=/serai/target \
|
||||
@@ -27,7 +25,7 @@ RUN --mount=type=cache,target=/root/.cargo/ \
|
||||
mv /serai/target/release/serai-processor /serai/bin
|
||||
|
||||
# Prepare Image
|
||||
FROM debian:bullseye-slim as image
|
||||
FROM debian:bullseye as image
|
||||
LABEL description="STAGE 2: Copy and Run"
|
||||
|
||||
WORKDIR /home/serai
|
||||
@@ -36,8 +34,5 @@ WORKDIR /home/serai
|
||||
COPY --from=builder /serai/bin/* /bin/
|
||||
COPY --from=builder /serai/AGPL-3.0 .
|
||||
|
||||
# Install openssl
|
||||
RUN apt update && apt upgrade -y && apt install -y openssl
|
||||
|
||||
# Run processor
|
||||
CMD ["serai-processor"]
|
||||
|
||||
Reference in New Issue
Block a user