mikeee commited on
Commit
c3d8d15
·
verified ·
1 Parent(s): 78db5c9

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 types.go ./
7
+ COPY utils.go ./
8
+ COPY config.go ./
9
+ COPY translate.go ./
10
+ COPY go.mod ./
11
+ COPY go.sum ./
12
+ RUN go get -d -v ./
13
+ RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o deeplx .
14
+
15
+ FROM alpine:latest
16
+ WORKDIR /app
17
+ COPY --from=builder /go/src/github.com/OwO-Network/DeepLX/deeplx /app/deeplx
18
+ CMD ["/app/deeplx"]