Create Dockerfile
Browse files- Dockerfile +11 -0
Dockerfile
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM golang:1.21
|
2 |
+
RUN apt update && apt install git && git clone https://github.com/aurora-develop/Duck2api.git /app
|
3 |
+
WORKDIR /app
|
4 |
+
RUN go mod download
|
5 |
+
EXPOSE 7860
|
6 |
+
ENV SERVER_HOST=0.0.0.0
|
7 |
+
ENV PREFIX=/hf
|
8 |
+
ENV SERVER_PORT=7860
|
9 |
+
|
10 |
+
RUN go build -o main .
|
11 |
+
CMD ["/app/main"]
|