nump commited on
Commit
84d7b0e
·
verified ·
1 Parent(s): 79c75cc

Update Dockerfile

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