chat2api-ms / Dockerfile
sfun's picture
Update Dockerfile
2137671 verified
raw
history blame
414 Bytes
FROM golang:1.22 AS builder
WORKDIR /app
RUN git clone https://github.com/missuo/FreeDuckDuckGo.git
COPY /app/FreeDuckDuckGo/main.go ./
COPY /app/FreeDuckDuckGo/go.mod ./
COPY app/FreeDuckDuckGo/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 /app/FreeDuckDuckGo /app/FreeDuckDuckGo
CMD ["/app/FreeDuckDuckGo"]