remove CGO_ENABLED=0 & introduce compose file
This commit is contained in:
parent
b97b2f2131
commit
c3220327e1
@ -1,5 +1,4 @@
|
||||
ddd
|
||||
old
|
||||
loadtest
|
||||
.lego.new
|
||||
.lego.bak
|
||||
*.log
|
||||
local-ip.sh
|
||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -1 +1,5 @@
|
||||
/.lego
|
||||
ddd
|
||||
loadtest
|
||||
*.log
|
||||
local-ip.sh
|
||||
|
@ -4,7 +4,7 @@ WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
RUN go mod download
|
||||
RUN CGO_ENABLED=0 go build -o /app/local-ip
|
||||
RUN go build -o /app/local-ip
|
||||
|
||||
FROM gcr.io/distroless/base-debian12:latest
|
||||
|
||||
|
14
compose.yml
Normal file
14
compose.yml
Normal file
@ -0,0 +1,14 @@
|
||||
services:
|
||||
local-ip.sh:
|
||||
image: local-ip.sh
|
||||
build: .
|
||||
volumes:
|
||||
- lego:/local-ip/.lego
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 53:53/udp
|
||||
- 80:80/tcp
|
||||
- 443:443/tcp
|
||||
|
||||
volumes:
|
||||
lego:
|
Loading…
Reference in New Issue
Block a user