Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani committed Mar 12, 2024
1 parent e942481 commit 9a75916
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker/heplify/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 .
Expand Down

0 comments on commit 9a75916

Please sign in to comment.