Spaces:
Sleeping
Sleeping
File size: 294 Bytes
84d7b0e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
FROM golang:1.21
RUN apt update && apt install -y git \
&& git clone https://github.com/aurora-develop/Duck2api.git /app
WORKDIR /app
RUN go mod download
EXPOSE 7860
ENV SERVER_HOST=0.0.0.0
ENV PREFIX=/hf
ENV SERVER_PORT=7860
RUN go build -o main .
CMD ["/app/main"] |