Skip to content

Commit

Permalink
opt out for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
hanabi1224 committed Sep 13, 2024
1 parent 931b6cf commit 70d4396
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.5.0 AS xx
FROM --platform=$BUILDPLATFORM ubuntu:22.04 AS build-env
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# export TARGETPLATFORM
ARG TARGETPLATFORM

# install dependencies
RUN apt-get update && \
apt-get install --no-install-recommends -y build-essential clang curl git ca-certificates
Expand All @@ -38,12 +41,13 @@ ENV PATH="/root/.cargo/bin:${PATH}"
RUN curl -sSL https://raw.githubusercontent.com/voidint/g/master/install.sh | bash
RUN "${HOME}/.g/bin/g" install 1.21 && ln -sf "${HOME}/.g/go/bin/go" /usr/local/bin/go && go version

# Opt out F3 sidecar FFI build for arm64 for now
RUN if [ "${TARGETPLATFORM}" != "linux/amd64" ] ;then echo FOREST_F3_SIDECAR_FFI_BUILD_OPT_OUT=1 >>/etc/environment ; fi
RUN echo "FOREST_F3_SIDECAR_FFI_BUILD_OPT_OUT=${FOREST_F3_SIDECAR_FFI_BUILD_OPT_OUT}"

Check failure on line 46 in Dockerfile

View workflow job for this annotation

GitHub Actions / docker-lint

DL3059 info: Multiple consecutive `RUN` instructions. Consider consolidation.

# Copy the cross-compilation scripts
COPY --from=xx / /

# export TARGETPLATFORM
ARG TARGETPLATFORM

# Install those packages for the target architecture
RUN xx-apt-get update && \
xx-apt-get install -y libc6-dev g++
Expand Down

0 comments on commit 70d4396

Please sign in to comment.