From 0548197c6b5498e95cd952260f918d9dcf4fc159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Duchesneau?= Date: Fri, 8 Dec 2023 14:31:56 -0500 Subject: [PATCH] try to build docker simpler from ubuntu to alpine --- .github/workflows/docker.yml | 24 +++--------------------- Dockerfile.fh | 7 ------- 2 files changed, 3 insertions(+), 28 deletions(-) delete mode 100644 Dockerfile.fh diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 9ac7886c6d3e..dad991c3cd4c 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -21,25 +21,7 @@ jobs: packages: write steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Install Go - uses: actions/setup-go@v3 - with: - go-version: 1.20.x - - - uses: actions/cache@v3 - with: - path: | - ~/go/pkg/mod - ~/.cache/go-build - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- - - - name: Build Binary - run: make geth + - uses: actions/checkout@v3 - name: Log in to the Container registry uses: docker/login-action@v2 @@ -65,8 +47,8 @@ jobs: - name: Build and push Docker image uses: docker/build-push-action@v4 with: - context: ./build/bin - file: ./Dockerfile.fh + context: . + file: ./Dockerfile push: true tags: ${{ steps.meta.outputs.tags }} # org.opencontainers.image.version will match the tag name diff --git a/Dockerfile.fh b/Dockerfile.fh deleted file mode 100644 index 21f512820255..000000000000 --- a/Dockerfile.fh +++ /dev/null @@ -1,7 +0,0 @@ -FROM ubuntu:20.04 - -RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ - apt-get -y install -y ca-certificates libssl1.1 - -ADD ./geth /app/geth -ENTRYPOINT /app/geth