Skip to content

Commit

Permalink
fix docker image problem
Browse files Browse the repository at this point in the history
  • Loading branch information
try-agaaain committed Mar 19, 2023
1 parent 07390e1 commit 3e3fd1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/ecli-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,6 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build ecli-aarch64 image and push to GitHub Container Registry
uses: docker/build-push-action@v2
with:
# relative path to the place where source code with Dockerfile is located
context: ./
file: ./ecli/dockerfile
platforms: linux/arm64
# Note: tags has to be all lower-case
tags: |
ghcr.io/${{ github.repository_owner }}/ecli-aarch64:latest
push: true

- name: Build ecli-x86_64 image and push to GitHub Container Registry
uses: docker/build-push-action@v2
with:
Expand Down
6 changes: 3 additions & 3 deletions compiler/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ COPY . /usr/local/src
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
libelf1 libelf-dev zlib1g-dev libclang-13-dev \
make wget cargo curl python2 clang llvm && \
make wget cargo curl python2 clang llvm git && \
apt-get install -y --no-install-recommends ca-certificates && \
update-ca-certificates && \
apt-get clean && \
Expand All @@ -22,8 +22,8 @@ RUN wget --progress=dot:giga --no-check-certificate \
RUN cp /usr/bin/python2 /usr/bin/python

ARG CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
RUN make ecc && \
make -C compiler install && \
RUN export CARGO_NET_GIT_FETCH_WITH_CLI=true && \
make ecc && \
rm -rf compiler/cmd/target

WORKDIR /usr/local/src/compiler
Expand Down

0 comments on commit 3e3fd1d

Please sign in to comment.