Skip to content

Commit

Permalink
[skip ci] fix linux amd64 build failed
Browse files Browse the repository at this point in the history
  • Loading branch information
ewfian committed Aug 4, 2023
1 parent 0f06b28 commit 4ec28a7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_release_linux_x64_openblas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Prepare Image
run: docker buildx build --platform linux/amd64 -o type=docker -f Dockerfile.buildlinux -t faiss-build-linux .
run: docker buildx build --platform linux/amd64 -o type=docker -f Dockerfile.buildlinuxamd64 -t faiss-build-linux .
- name: Build & test
run: docker run --rm --platform linux/amd64 faiss-build-linux
- name: Build Release
Expand Down
15 changes: 7 additions & 8 deletions Dockerfile.debugaws → Dockerfile.buildlinuxamd64
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
FROM public.ecr.aws/lambda/nodejs:18
COPY package*.json ./
RUN npm ci --ignore-scripts

RUN yum -y install wget tar gzip gcc gcc-c++ make lapack-devel
FROM node:18-buster
WORKDIR /app
RUN apt update && apt install -y cmake libopenblas-dev patchelf
RUN wget -q https://github.com/Kitware/CMake/releases/download/v3.27.0/cmake-3.27.0-linux-x86_64.sh && \
sh cmake-3.27.0-linux-x86_64.sh --skip-license --exclude-subdir --prefix=/usr/local

COPY package*.json ./
RUN npm ci --ignore-scripts
COPY . .

ENTRYPOINT ["tail"]
CMD ["-f","/dev/null"]
ENTRYPOINT ["npm"]
CMD ["run", "build:test"]
10 changes: 0 additions & 10 deletions Dockerfile.debug

This file was deleted.

10 changes: 0 additions & 10 deletions Dockerfile.debuglinux

This file was deleted.

0 comments on commit 4ec28a7

Please sign in to comment.