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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -11
Dockerfile CHANGED
@@ -1,11 +1,9 @@
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"]
 
1
+ FROM golang:1.21
2
+ RUN apt update && apt install git && git clone https://github.com/BlackNum/Duck2api.git /app
3
+ WORKDIR /app
4
+ RUN go mod download
5
+ EXPOSE 7860
6
+ ENV SERVER_HOST=0.0.0.0
7
+
8
+ RUN go build -o main .
9
+ CMD ["/app/main"]