diff --git a/docker/heplify/Dockerfile b/docker/heplify/Dockerfile index 666a1f6..0f62fba 100644 --- a/docker/heplify/Dockerfile +++ b/docker/heplify/Dockerfile @@ -1,7 +1,9 @@ -# sudo docker build -t negbie/heplify:latest . - FROM golang:alpine 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 \ + && 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 .