Update Dockerfile
Browse files- Dockerfile +9 -11
Dockerfile
CHANGED
@@ -1,11 +1,9 @@
|
|
1 |
-
FROM golang:1.21
|
2 |
-
RUN apt update
|
3 |
-
|
4 |
-
RUN
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
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"]
|
|
|
|