Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +7 -13
Dockerfile
CHANGED
@@ -1,15 +1,9 @@
|
|
1 |
-
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
COPY dto.go ./
|
7 |
-
COPY go.mod ./
|
8 |
-
COPY go.sum ./
|
9 |
-
RUN go get -d -v ./
|
10 |
-
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o deeplx .
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
CMD ["/app/deeplx"]
|
|
|
1 |
+
FROM ubuntu:latest
|
2 |
|
3 |
+
RUN apt-get update && apt-get install -y wget
|
4 |
+
RUN wget https://github.com/OwO-Network/DeepLX/releases/download/latest/deeplx_linux_amd64 -O deeplx
|
5 |
+
RUN chmod +x deeplx
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
+
EXPOSE 1188
|
8 |
+
|
9 |
+
CMD ./deeplx -port 7860 -token $ACCESS_TOKEN
|
|