File size: 368 Bytes
c5d467b
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
FROM golang:1.22 AS builder
WORKDIR /go/src/github.com/missuo/FreeDuckDuckGo
COPY main.go ./
COPY go.mod ./
COPY go.sum ./
RUN go get -d -v ./
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o FreeDuckDuckGo .

FROM alpine:latest
WORKDIR /app
COPY --from=builder /go/src/github.com/missuo/FreeDuckDuckGo/FreeDuckDuckGo /app/FreeDuckDuckGo
CMD ["/app/FreeDuckDuckGo"]