From 07d7c1ba6522c7e036f5b0df56451f5a827ef746 Mon Sep 17 00:00:00 2001 From: Nicko Guyer Date: Fri, 1 Mar 2024 15:30:25 -0500 Subject: [PATCH] Fix docker build and add to PR checks Signed-off-by: Nicko Guyer --- .github/workflows/go.yaml | 7 +++++++ Dockerfile | 5 ++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 3bb9200..e5c1d7d 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -37,3 +37,10 @@ jobs: - name: Upload coverage run: bash <(curl -s https://codecov.io/bash) + + docker-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build + run: docker build . diff --git a/Dockerfile b/Dockerfile index 9b7c98d..156bd3d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ -FROM golang:1.21-alpine3.19 AS builder -RUN apk add make +FROM golang:1.21-bullseye AS builder WORKDIR /ethconnect RUN apt-get update -y \ && apt-get install -y build-essential git \ @@ -14,7 +13,7 @@ ADD . . RUN cp go.mod.new go.mod RUN make clean deps build -FROM debian:buster-slim +FROM debian:bullseye-slim WORKDIR /ethconnect COPY --from=builder /ethconnect/ethconnect . COPY --from=builder /ethconnect/ethbinding.so .