File tree 2 files changed +13
-11
lines changed
2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 1
1
package config
2
2
3
- const Version = "heplify-server 1.59.1 "
3
+ const Version = "heplify-server 1.59.2 "
4
4
5
5
var Setting HeplifyServer
6
6
Original file line number Diff line number Diff line change 1
- # sudo docker build -t sipcapture/ heplify-server:latest .
2
-
1
+ # should be run from root directory of heplify-server
2
+ # sudo docker build --no-cache -t sipcapture/heplify-server -f docker/Dockerfile .
3
3
FROM golang:alpine as builder
4
4
5
- RUN apk update && apk add --no-cache git build-base luajit-dev
6
- RUN go install github.com/sipcapture/heplify-server/cmd/heplify-server@latest
7
- # workaround for latest version
8
- WORKDIR /go/pkg/mod/github.com/sipcapture/
9
- RUN ln -s `ls -ltd hepl* | tail -1 | awk '{print $9}' ` heplify-server@latest
5
+ RUN apk update && apk add --no-cache git build-base
6
+ RUN git clone https://luajit.org/git/luajit-2.0.git \
7
+ && cd luajit-2.0 \
8
+ && make CCOPT="-static -fPIC" BUILDMODE="static" && make install
9
+ COPY . /heplify-server
10
+ WORKDIR /heplify-server/cmd/heplify-server
11
+ RUN CGO_ENABLED=1 GOOS=linux go build -a --ldflags '-linkmode external -extldflags "-static -s -w"' -o heplify-server .
10
12
11
13
FROM alpine:latest
12
14
13
15
RUN apk update
14
- RUN apk --no-cache add ca-certificates
16
+ RUN apk --no-cache add ca-certificates bash
15
17
RUN apk upgrade
16
18
17
19
WORKDIR /root/
18
- COPY --from=builder /go/bin /heplify-server .
19
- COPY --from=builder /go/pkg/mod/github.com/sipcapture/ heplify-server@latest /scripts ./scripts
20
+ COPY --from=builder /heplify-server/cmd/heplify-server /heplify-server .
21
+ COPY --from=builder /heplify-server/scripts ./scripts
You can’t perform that action at this time.
0 commit comments