Spaces:
Sleeping
Sleeping
File size: 347 Bytes
17c0f65 352a3c8 fbdf6e8 17c0f65 03ae63b 17c0f65 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
FROM golang:1.21 AS builder
ENV CGO_ENABLED=0
RUN apt-get update && apt-get install -y git
RUN git clone https://github.com/renqabs/Da.git /app
WORKDIR /app
RUN go mod download
RUN go build -ldflags "-s -w" -o /app/duck2api .
FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/duck2api /app/duck2api
EXPOSE 8080
CMD ["./duck2api"] |