Skip to content

Commit

Permalink
ci: migrate to ubuntu for builds (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
maschad authored Feb 20, 2025
1 parent 41dcd4d commit 72a6947
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Builder stage
FROM --platform=$BUILDPLATFORM rust:1.83-slim-bullseye AS builder
FROM --platform=$BUILDPLATFORM ubuntu:24.04 AS builder

# Add platform-specific arguments
ARG TARGETPLATFORM
Expand All @@ -13,12 +13,20 @@ RUN apt-get update && apt-get install -y \
pkg-config \
curl \
libssl-dev \
libssl1.1 \
libssl3 \
ca-certificates \
&& if [ "$ENABLE_TDX" = "true" ]; then \
apt-get install -y libtss2-dev; \
fi \
&& rm -rf /var/lib/apt/lists/*

# Install Rust 1.84.0
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.84.0 \
&& . "$HOME/.cargo/env"

# Add cargo to PATH
ENV PATH="/root/.cargo/bin:${PATH}"

WORKDIR /usr/src/atoma-node

COPY . .
Expand Down

0 comments on commit 72a6947

Please sign in to comment.