Skip to content

Commit

Permalink
feat: add packages needed for amao wasm build
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Dawson <[email protected]>
  • Loading branch information
mhdawson committed Sep 26, 2024
1 parent ac5bd8f commit b824ec8
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions container-build-info/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,36 @@ ARG UID=1000
ARG GID=1000

# set SOURCE_DATE_EPOCH for reproduciability - https://reproducible-builds.org/docs/source-date-epoch/
ENV SOURCE_DATE_EPOCH: 0
ENV SOURCE_DATE_EPOCH=0

ENV ROOT_DIR /home/node
ENV METADATA_DIR $ROOT_DIR/metadata
ENV ROOT_DIR=/home/node
ENV METADATA_DIR=$ROOT_DIR/metadata
RUN mkdir $METADATA_DIR
ENV WORKDIR_DIR $ROOT_DIR/build
ENV WORKDIR_DIR=$ROOT_DIR/build
RUN mkdir WORKDIR_DIR
WORKDIR $WORKDIR_DIR

# Keep a copy of the Dockerfile used
COPY Dockerfile /home/node/metadata/Dockerfile

###################################
# Install required system packages

# those needed for undici
RUN apk add -U clang lld wasi-sdk

# those needed for cjs-module-lexar
RUN apk add -U clang lld wasi-sdk make

# those needed for amaro
RUN apk add -U rust rust-wasm cargo cmake gcc g++ bash make

# capture the versions of the packages installed
RUN apk info -v >/home/node/metadata/apk-info

###################################
# Non package insalls

# Install BINARYEN, there are only linux/arm64 tar.gz's after 116
# If we expect a versoin to exist and we don't get one error out
RUN CURRENT_ARCH=`arch` && \
Expand Down

0 comments on commit b824ec8

Please sign in to comment.