nump commited on
Commit
24824bf
1 Parent(s): 15d7706

Upload 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
3
+ RUN apt install git
4
+ RUN git clone https://github.com/BlackNum/Duck2api.git /app
5
+ WORKDIR /app
6
+ RUN go mod download
7
+ EXPOSE 7860
8
+ ENV SERVER_HOST=0.0.0.0
9
+
10
+ RUN go build -o main .
11
+ CMD ["/app/main"]