IHaBiS commited on
Commit
a89b07d
1 Parent(s): b19e472

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -13
Dockerfile CHANGED
@@ -1,15 +1,9 @@
1
- # syntax=docker/dockerfile:1
2
 
3
- FROM golang:1.22 AS builder
4
- WORKDIR /go/src/github.com/OwO-Network/DeepLX
5
- COPY main.go ./
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
- FROM alpine:latest
13
- WORKDIR /app
14
- COPY --from=builder /go/src/github.com/OwO-Network/DeepLX/deeplx /app/deeplx
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