diff --git a/.dockerignore b/.dockerignore index 5ea175fcc..fdeddc579 100644 --- a/.dockerignore +++ b/.dockerignore @@ -4,4 +4,6 @@ build/bin statusd-data wnode-data +_assets/ci +_assets/build **/*.test diff --git a/_assets/build/Dockerfile b/_assets/build/Dockerfile index cef35c25d..a2049d688 100644 --- a/_assets/build/Dockerfile +++ b/_assets/build/Dockerfile @@ -1,5 +1,6 @@ # Build status-go in a Go builder container -FROM golang:1.19-alpine as builder +FROM golang:1.20-alpine3.18 as builder + RUN apk add --no-cache make gcc g++ musl-dev linux-headers @@ -13,7 +14,7 @@ ADD . . RUN make $build_target BUILD_TAGS="$build_tags" BUILD_FLAGS="$build_flags" SHELL="/bin/sh" # Copy the binary to the second image -FROM alpine:latest +FROM alpine:3.18 ARG build_target=statusgo