Spaces:
Sleeping
Sleeping
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"] |