From 5fb42f74541a98ab08e526bdbc97078b7275d6b5 Mon Sep 17 00:00:00 2001 From: Lorenzo Mangani Date: Fri, 14 Jun 2024 00:09:26 +0200 Subject: [PATCH] Update Dockerfile --- docker/heplify/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/heplify/Dockerfile b/docker/heplify/Dockerfile index 0f62fba..d0162a5 100644 --- a/docker/heplify/Dockerfile +++ b/docker/heplify/Dockerfile @@ -1,14 +1,15 @@ -FROM golang:alpine as builder +FROM golang:1.22.4-alpine3.20 as builder RUN apk --update add linux-headers musl-dev gcc libpcap-dev ca-certificates git RUN apk --update add --no-cache git build-base RUN git clone https://luajit.org/git/luajit-2.0.git \ && cd luajit-2.0 \ + && git checkout v2.1 \ && make CCOPT="-static -fPIC" BUILDMODE="static" && make install COPY . /heplify WORKDIR /heplify RUN CGO_ENABLED=1 GOOS=linux go build -a --ldflags '-linkmode external -extldflags "-static -s -w"' -o heplify . -FROM alpine +FROM alpine:3.20 RUN apk --no-cache add ca-certificates tzdata libcap COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=builder /heplify/heplify .