Upload Dockerfile
Browse files- 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"]
|