Update base image to ubuntu 24.04

- Replace legacy key-value for environment variables
- Remove unnecessary '.' from 'cmake -S . -B build -DCMAKE_BUILD_TYPE=Release .' because '-S' already specifies source directory
This commit is contained in:
Thomas Lauf 2025-08-10 11:38:21 +02:00
parent bba38b00f8
commit 17afcbd9c7

View file

@ -1,8 +1,8 @@
FROM ubuntu:22.04 AS base FROM ubuntu:24.04 AS base
FROM base AS builder FROM base AS builder
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y \ apt-get install -y \
@ -14,9 +14,9 @@ RUN apt-get update && \
uuid-dev uuid-dev
# Setup language environment # Setup language environment
ENV LC_ALL en_US.UTF-8 ENV LC_ALL=en_US.UTF-8
ENV LANG en_US.UTF-8 ENV LANG=en_US.UTF-8
ENV LANGUAGE en_US.UTF-8 ENV LANGUAGE=en_US.UTF-8
# Add source directory # Add source directory
ADD .. /root/code/ ADD .. /root/code/
@ -30,7 +30,7 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh && \
RUN git clean -dfx && \ RUN git clean -dfx && \
git submodule init && \ git submodule init && \
git submodule update && \ git submodule update && \
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release . && \ cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && \
cmake --build build -j 8 cmake --build build -j 8
FROM base AS runner FROM base AS runner