sfun commited on
Commit
2137671
1 Parent(s): 4cb7e11

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -1
Dockerfile CHANGED
@@ -1 +1,13 @@
1
- FROM ghcr.io/zbronya/free-chat-to-api:latest
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM golang:1.22 AS builder
2
+ WORKDIR /app
3
+ RUN git clone https://github.com/missuo/FreeDuckDuckGo.git
4
+ COPY /app/FreeDuckDuckGo/main.go ./
5
+ COPY /app/FreeDuckDuckGo/go.mod ./
6
+ COPY app/FreeDuckDuckGo/go.sum ./
7
+ RUN go get -d -v ./
8
+ RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o FreeDuckDuckGo .
9
+
10
+ FROM alpine:latest
11
+ WORKDIR /app
12
+ COPY --from=builder /app/FreeDuckDuckGo /app/FreeDuckDuckGo
13
+ CMD ["/app/FreeDuckDuckGo"]