ykl45 commited on
Commit
d5b3d27
1 Parent(s): 3407a44

Create Dockerfile

Browse files
Files changed (1) hide show
  1. 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"]