Move apt calls in Docker to enable caching

This commit is contained in:
Luke Parker
2023-08-12 22:51:12 -04:00
parent 6a89cfcd08
commit 049fefb5fd
6 changed files with 29 additions and 25 deletions

View File

@@ -1,6 +1,9 @@
FROM rust:1.71-slim-bookworm as builder
LABEL description="STAGE 1: Build"
# Upgrade and add dev dependencies
RUN apt update && apt upgrade -y && apt install -y pkg-config clang libssl-dev && apt autoremove -y && apt clean
# Add files for build
ADD common /serai/common
ADD crypto /serai/crypto
@@ -16,8 +19,6 @@ ADD AGPL-3.0 /serai
WORKDIR /serai
RUN apt update && apt upgrade -y && apt install -y pkg-config clang libssl-dev
# Add the wasm toolchain
RUN rustup target add wasm32-unknown-unknown