forked from rkfg/regolancer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (21 loc) · 748 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM golang:1.19.2-alpine as builder
# Pass a tag, branch or a commit using build-arg. This allows a docker
# image to be built from a specified Git state. The default image
# will use the Git tip of master by default.
ARG checkout="master"
ARG git_url="https://github.com/rkfg/regolancer.git"
# Install dependencies and build the binaries.
RUN apk add --no-cache git \
&& git clone $git_url /go/src/github.com/regolancer \
&& cd /go/src/github.com/regolancer \
&& git checkout $checkout \
&& go install
# Start a new, final image.
FROM alpine as final
RUN apk --no-cache add \
bash \
jq
WORKDIR /app
COPY --from=builder /go/bin/regolancer /app
VOLUME [ "/root/.lnd" ]
ENTRYPOINT ["./regolancer"]