Skip to content

Commit

Permalink
Update docker image to alpine3.16 (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph authored Oct 3, 2022
1 parent c018501 commit 624a033
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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++

Expand All @@ -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
Expand Down

0 comments on commit 624a033

Please sign in to comment.