Skip to content

Commit

Permalink
flow.Dockerfile: go 1.21.x & don't install dev packages on base (#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex authored Jan 7, 2024
1 parent ea6cd58 commit 504a038
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stacks/flow.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1.2

FROM golang:1.21.3-bookworm AS builder
FROM golang:1.21-bookworm AS builder
RUN apt-get update && apt-get install -y gcc libgeos-dev
WORKDIR /root/flow

Expand All @@ -19,7 +19,7 @@ ENV CGO_ENABLED=1
RUN go build -ldflags="-s -w" -o /root/peer-flow .

FROM debian:bookworm-slim AS flow-base
RUN apt-get update && apt-get install -y ca-certificates gcc libgeos-dev
RUN apt-get update && apt-get install -y ca-certificates libgeos-c1v5
WORKDIR /root
COPY --from=builder /root/peer-flow .

Expand Down

0 comments on commit 504a038

Please sign in to comment.