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 .