Skip to content

Commit

Permalink
simplifying more
Browse files Browse the repository at this point in the history
  • Loading branch information
seriousben committed Dec 18, 2024
1 parent f464628 commit 63d633f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
13 changes: 6 additions & 7 deletions server/dockerfiles/Dockerfile.builder_linux_aarch64
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM ubuntu:24.04

RUN apt-get update && apt-get install --assume-yes --no-install-recommends \
build-essential npm curl \
g++-aarch64-linux-gnu \
libc6-dev-arm64-cross git clang
RUN apt-get update && \
apt-get install --assume-yes --no-install-recommends \
build-essential pkg-config clang \
g++-aarch64-linux-gnu libc6-dev-arm64-cross \
git curl

RUN curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh && \
bash -E nodesource_setup.sh && \
Expand All @@ -14,6 +15,4 @@ ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER="$CROSS_TOOLCHAIN_PREFIX"gcc \
AR_aarch64_unknown_linux_gnu="$CROSS_TOOLCHAIN_PREFIX"ar \
CC_aarch64_unknown_linux_gnu="$CROSS_TOOLCHAIN_PREFIX"gcc \
CXX_aarch64_unknown_linux_gnu="$CROSS_TOOLCHAIN_PREFIX"g++ \
PKG_CONFIG_PATH="/usr/lib/aarch64-linux-gnu/pkgconfig/:${PKG_CONFIG_PATH}"

ENV RUSTFLAGS="-L /opt/sysroot/usr/lib"
PKG_CONFIG_PATH="/usr/lib/aarch64-linux-gnu/pkgconfig/:${PKG_CONFIG_PATH}"
12 changes: 4 additions & 8 deletions server/dockerfiles/Dockerfile.builder_linux_x86
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ FROM ubuntu:24.04

RUN apt-get update && \
apt-get install --assume-yes --no-install-recommends \
software-properties-common unzip \
build-essential make cmake ca-certificates \
curl pkg-config git \
sqlite3 clang gcc-10 g++-10
build-essential pkg-config clang \
g++ \
git curl

RUN curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh && \
bash -E nodesource_setup.sh && \
apt-get install --assume-yes --no-install-recommends nodejs

RUN apt remove -y gcc-9 g++-9
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 20 --slave /usr/bin/g++ g++ /usr/bin/g++-10
apt-get install --assume-yes --no-install-recommends nodejs

0 comments on commit 63d633f

Please sign in to comment.