diff --git a/Dockerfile b/Dockerfile index f6afe2a2e..efe7c9dfb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Create base builder image -FROM golang:1.19.1-buster AS builder +FROM golang:1.19.1-alpine3.16 AS builder WORKDIR /go/src/github.com/ava-labs/ortelius RUN apk add --no-cache alpine-sdk bash git make gcc musl-dev linux-headers git ca-certificates g++ libstdc++ @@ -10,7 +10,7 @@ RUN if [ -d "./vendor" ];then export MOD=vendor; else export MOD=mod; fi && \ GOOS=linux GOARCH=amd64 CGO_CFLAGS="-O -D__BLST_PORTABLE__" go build -mod=$MOD -o /opt/orteliusd ./cmds/orteliusd/*.go # Create final image -FROM alpine:3.14 as execution +FROM alpine:3.16 as execution RUN apk add --no-cache libstdc++ VOLUME /var/log/ortelius WORKDIR /opt